AmitDiwan has Published 10740 Articles

Get a value indicating whether this instance is equal to a specified object or UInt64 in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:36:06

122 Views

To return a value indicating whether this instance is equal to a specified object or UInt64, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       ulong val1 = 44565777;       ulong val2 = 77878787;     ... Read More

Get the TypeCode for value type Int32 in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:33:57

173 Views

To get the TypeCode for value type Int32, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       int val1 = 100;       int val2 = 50;       Console.WriteLine("Value1 = "+val1);       Console.WriteLine("Value2 ... Read More

Convert Decimal to the equivalent 64-bit unsigned integer in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:29:52

622 Views

To convert the value of the specified Decimal to the equivalent 64-bit unsigned integer, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       Decimal val = 99.29m;       Console.WriteLine("Decimal value = "+val);       ulong ... Read More

Indicate whether this instance is equal to a specified object or UInt16 in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:26:44

133 Views

To indicate whether this instance is equal to a specified object or UInt16, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main(){       ushort val1 = 52;       ushort val2 = 10;       bool res = ... Read More

ConvertDecimal to equivalent 32-bit unsigned integer in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:25:14

477 Views

To convert the value of the specified Decimal to the equivalent 32-bit unsigned integer, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       Decimal val = 0.001m;       Console.WriteLine("Decimal value = "+val);       uint ... Read More

Get the number of key/value pairs in the Dictionary in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:24:04

612 Views

To get the number of key/value pairs in the Dictionary, the code is as follows −Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main(){       Dictionary dict =       new Dictionary();       dict.Add("One", "Chris");       dict.Add("Two", "Steve"); ... Read More

Reinterpret 64-bit signed integer to a double-precision floating point number in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:22:35

525 Views

To reinterpret the specified 64-bit signed integer to a double-precision floating point number, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       long d = 9846587687;       Console.Write("Value (64-bit signed integer) = "+d);       ... Read More

Convert the value of the specified string to its equivalent Unicode character in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:21:24

403 Views

To convert the value of the specified string to its equivalent Unicode character, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main(){       bool res;       Char ch;       res = Char.TryParse("10", out ch);     ... Read More

Convert the specified double-precision floating point number to a 64-bit signed integer in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:20:20

409 Views

To convert the specified double-precision floating point number to a 64-bit signed integer, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       double d = 5.646587687;       Console.Write("Value = "+d);       long res = ... Read More

Convert the value of the current DateTime object to a Windows file time in C#

AmitDiwan

AmitDiwan

Updated on 11-Dec-2019 07:17:06

318 Views

To convert the value of the current DateTime object to a Windows file time, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main() {       DateTime d = DateTime.Now;       Console.WriteLine("Date = {0}", d);       long ... Read More

Advertisements