AmitDiwan has Published 10744 Articles

UInt64.GetTypeCode() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:53:06

93 Views

The UInt64.GetTypeCode() method in C# is used to return the TypeCode for value type UInt64.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the UInt64.GetTypeCode() method −using System; public class Demo {    public static void Main(){       ulong val1 = 55; ... Read More

UInt64.GetHashCode() Method in C# with Examples

AmitDiwan

AmitDiwan

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

103 Views

The UInt64.GetHashCode() method in C# is used to get the HashCode for the current UInt64 instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the UInt64.GetHashCode() method −using System; public class Demo {    public static void Main(){       ulong val1 ... Read More

UInt64.Equals Method in C# with Examples

AmitDiwan

AmitDiwan

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

116 Views

The UInt64.Equals() method in C# returns a value indicating whether this instance is equal to a specified object or UInt64.SyntaxFollowing is the syntax −public override bool Equals (object ob); public bool Equals (ulong ob);Above, the parameter ob for the 1st syntax is an object to compare to this instance and ... Read More

UInt64.CompareTo() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:46:28

176 Views

The UInt64.CompareTo() method in C# is used to compare the current instance to a specified object or UInt64 and returns an indication of their relative values.SyntaxFollowing is the syntax −public int CompareTo (object val); public int CompareTo (ulong val;Above, the value for the 1st syntax is an object to compare. ... Read More

Int32.GetTypeCode Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:43:30

120 Views

The Int32.GetTypeCode() method in C# is used to return the TypeCode for value type Int32.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Int32.GetTypeCode() method −using System; public class Demo {    public static void Main(){       int val1 = 100; ... Read More

Decimal.Truncate() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:40:45

1K+ Views

The Decimal.Truncate() method in C# is used to return the integral digits of the specified Decimal. Remember, any fractional digits are discarded.SyntaxFollowing is the syntax −public static decimal Truncate (decimal val);Above, Val is the decimal number to truncate.ExampleLet us now see an example to implement the Decimal.Truncate() method −using System; ... Read More

Decimal.ToUInt64() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:38:41

47 Views

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

Decimal.ToUInt32() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:33:27

69 Views

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

BitConverter.Int64BitsToDouble() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:31:18

90 Views

The BitConverter.Int64BitsToDouble() method in C# is used to reinterpret the specified 64-bit signed integer to a double-precision floating-point number.SyntaxFollowing is the syntax −public static double Int64BitsToDouble (long val);Above, the parameter value is the number to convert.ExampleLet us now see an example to implement the BitConverter.Int64BitsToDouble() method −using System; public class ... Read More

BitConverter.DoubleToInt64Bits() Method in C#

AmitDiwan

AmitDiwan

Updated on 07-Nov-2019 06:29:06

96 Views

The BitConverter.DoubleToInt64Bits() method in C# is used to convert the specified double-precision floating-point number to a 64-bit signed integer.SyntaxFollowing is the syntax −public static long DoubleToInt64Bits (double val);Above, Val is the number to convert.ExampleLet us now see an example to implement the BitConverter.DoubleToInt64Bits() method −using System; public class Demo { ... Read More

Advertisements