AmitDiwan has Published 10744 Articles

SortedDictionary.Keys Property in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 08:16:32

269 Views

The SortedDictionary.Keys property in C# is used to get a collection containing the keys in the SortedDictionary.SyntaxThe syntax is as follows −public System.Collections.Generic.SortedDictionary.KeyCollection Keys { get; }ExampleLet us now see an example − Live Demousing System; using System.Collections; using System.Collections.Generic; public class Demo {    public static void Main(){     ... Read More

SByte.ToString() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 08:12:44

414 Views

The SByte.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation.SyntaxThe syntax is as follows −public override string ToString ();ExampleLet us now see an example − Live Demousing System; public class Demo {    public static void Main(){       sbyte ... Read More

BitConverter.ToInt32() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 08:08:52

427 Views

The BitConverter.ToInt32() method in C# is used to return a 32-bit signed integer converted from four bytes at a specified position in a byte array.SyntaxThe syntax is as follows −public static int ToInt32 (byte[] val, int begnIndex);Above, val is the byte array, whereas begnIndex is the beginning position within val.ExampleLet ... Read More

Single.CompareTo() Method in C# with Examples

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 08:04:19

218 Views

The Single.CompareTo() method in C# is used to compare this instance to a specified object or to another Single instance and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object or the other Single ... Read More

BitConverter.ToDouble() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 08:00:36

222 Views

The BitConverter.ToDouble() method in C# is used to return a double-precision floating-point number converted from eight bytes at a specified position in a byte array.SynchronizedThe syntax is as follows −public static double ToDouble (byte[] val, int begnIndex);Above, val is the byte array, whereas begnIndex is the beginning position within val.ExampleLet ... Read More

BitConverter.ToInt16() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 07:58:14

264 Views

The BitConverter.ToInt16() method in C# is used to return a 16-bit signed integer converted from two bytes at a specified position in a byte array.SyntaxThe syntax is as follows −public static short ToInt16 (byte[] val, int begnIndex);Above, val is the byte array, whereas begnIndex is the beginning position within val.ExampleLet ... Read More

Double.GetHashCode() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 07:55:39

108 Views

The Double.GetHashCode() method in C# is used to return the hash code for this instance.SyntaxThe syntax is as follows −public override int GetHashCode ();ExampleLet us now see an example − Live Demousing System; public class Demo {    public static void Main(){       double d1 = 150d;     ... Read More

Single.ToString Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 07:53:18

116 Views

The Single.ToString() method in C# is used to convert the numeric value of this instance to its equivalent string representation.SyntaxThe syntax is as follows −public override string ToString ();ExampleLet us now see an example − Live Demousing System; public class Demo {    public static void Main(){       float ... Read More

SortedDictionary.Item[] Property in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 07:50:51

112 Views

The SortedDictionary.Item[] property in C# is used to get or set the value associated with the specified key.SyntaxThe syntax is as follows −public TValue this[TKey k] { get; set; }Above, the value k is the key of the value to get or set.ExampleLet us now see an example − Live Demousing ... Read More

SortedDictionary.Count Property in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 07:44:04

128 Views

The SortedDictionary.Count property in C# is used to get the number of key/value pairs contained in the SortedDictionary.SyntaxThe syntax is as follows −public int Count { get; }ExampleLet us now see an example − Live Demousing System; using System.Collections; using System.Collections.Generic; public class Demo {    public static void Main(){   ... Read More

Advertisements