AmitDiwan has Published 10744 Articles

Math.BigMul() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 05:45:19

244 Views

The Math.BigMul() method in C# is used to calculate the full product of two 32-bit numbers. The method returns an Int64 integer with the production of both the numbers.SyntaxFollowing is the syntax −public static long BigMul (int val1, int val2);Here, val1 is the 1st number to multiply, whereas val2 is ... Read More

Math.Atan2() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 05:42:39

305 Views

The Math.Atan2() method in C# is used to return the angle whose tangent is the quotient of two specified numbers.SyntaxFollowing is the syntax −public static double Atan2 (double val1, double val2);Above, val1 is the y coordinate, whereas val2 is the x coordinate.ExampleLet us now see an example to implement Math.Atan2() ... Read More

Char.ToString() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 05:39:47

151 Views

The Char.ToString() method in C# is used to convert the value of this instance to its equivalent string representation.SyntaxFollowing is the syntax −public override string ToString ();ExampleLet us now see an example to implement the Char.ToString() method −using System; public class Demo {    public static void Main(){     ... Read More

Char.ToLowerInvariant(Char) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 08:06:14

173 Views

The Char.ToLowerInvariant() method in C# is used to convert the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture.OutputFollowing is the syntax −public static char ToLowerInvariant (char ch);Above, the parameter ch is the Unicode character to convert.ExampleLet us now see an example ... Read More

Char.Parse(String) Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 08:04:37

4K+ Views

The Char.Parse(String) method in C# is used to convert the value of the specified string to its equivalent Unicode character.SyntaxFollowing is the syntax −public static char Parse (string str);Above, the string str is a string that contains a single character or null.ExampleLet us now see an example to implement the ... Read More

Decimal.ToSingle() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 08:03:00

156 Views

The Decimal.ToSingle() method in C# is used to convert the value of the specified Decimal to the equivalent single-precision floating-point number.SyntaxFollowing is the syntax −public static float ToSingle (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToSingle() method −using System; public ... Read More

Decimal.ToSByte() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 08:01:34

60 Views

The Decimal.ToSByte() method in C# is used to convert the value of the specified Decimal to the equivalent 8-bit signed integer.SyntaxFollowing is the syntax −public static sbyte ToSByte (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToSByte() method −using System; public ... Read More

Decimal.ToOACurrency() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 07:59:34

89 Views

The Decimal.ToOACurrency() method in C# is used to convert the specified Decimal value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.SyntaxFollowing is the syntax −public static long ToOACurrency (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to ... Read More

Type.GetHashCode() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 07:15:11

138 Views

The Type.GetHashCode() method in C# is used to return the hash code for this instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the Type.GetHashCode() method −using System; public class Demo {    public static void Main(){       string[] arr = ... Read More

Type.GetField() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 07:12:54

333 Views

The Type.GetField() method in C# is used to get a specific field of the current Type.SyntaxFollowing is the syntax −public System.Reflection.FieldInfo GetField (string name); public abstract System.Reflection.FieldInfo GetField (string name, System.Reflection.BindingFlags bindingAttr);Above, the name is the string containing the name of the data field to get. The bindingAttr parameter is ... Read More

Advertisements