AmitDiwan has Published 10740 Articles

Int64.ToString() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:36:53

529 Views

The Int64.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 (); public string ToString (string format);Above, the parameter format is a numeric format string.ExampleLet us now see an example − Live Demousing System; ... Read More

Random.NextBytes() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:34:20

361 Views

The Random.NextBytes() method in C# is used to fill the elements of a specified array of bytes with random numbers.SyntaxThe syntax is as follows −public virtual void NextBytes (byte[] buffer);Above the buffer is the array of bytes.ExampleLet us now see an example − Live Demousing System; public class Demo {   ... Read More

Queue.GetEnumerator() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:26:21

154 Views

The Queue.GetEnumerator() method in C# is used to return an enumerator that iterates through the Queue.SyntaxThe syntax is as follows:public virtual System.Collections.IEnumerator GetEnumerator ();ExampleLet us now see an example − Live Demousing System; using System.Collections; public class Demo {    public static void Main(){       Queue queue = new ... Read More

Single.IsInfinity() Method in C# with Example

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:23:17

169 Views

The Single.IsInfinity() method in C# is used to return a value indicating whether the specified number evaluates to negative or positive infinity.SyntaxThe syntax is as follows −public static bool IsInfinity (float val);Above, val is a single-precision floating-point number.ExampleLet us now see an example − Live Demousing System; public class Demo { ... Read More

Int 64 Struct in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:19:44

2K+ Views

The Int 64 struct represents a 64-bit signed integer. It is an immutable value type representing signed integers with values: negative 9, 223, 372, 036, 854, 775, 808 through positive 9, 223, 372, 036, 854, 775, 807.Following are the fields of Int 64 −FieldDescriptionMaxValueRepresents the largest possible value of an ... Read More

Random.NextDouble() Method in C#

AmitDiwan

AmitDiwan

Updated on 03-Dec-2019 09:12:56

976 Views

The Random.NextDouble() method in C# is used to return a random floating-point number that is greater than or equal to 0.0, and less than 1.0.SyntaxThe syntax is as follows −public virtual double NextDouble ();ExampleLet us now see an example − Live Demousing System; public class Demo {    public static void ... Read More

SortedDictionary.Remove() Method in C#

AmitDiwan

AmitDiwan

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

149 Views

The SortedDictionary.Remove() method in C# is used to remove the element with the specified key from the SortedDictionary.OutputThe syntax is as follows −public bool Remove (TKey key);Above, the parameter key is the key of the element to remove.ExampleLet us now see an example − Live Demousing System; using System.Collections; using System.Collections.Generic; ... Read More

SortedDictionary.Keys Property in C#

AmitDiwan

AmitDiwan

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

289 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

446 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

450 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

Advertisements