Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

This method is used to convert the numeric value of each element of a specified array of bytes to its equivalent hexadecimal string representation. Syntax:… Read More
Hashtable.CopyTo(Array, Int32) Method is used to copy the elements of a Hashtable to a one-dimensional Array instance at the specified index.Syntax:   public virtual void CopyTo… Read More
Hashtable.GetEnumerator Method is used to returns an IDictionaryEnumerator that iterates through the Hashtable. Syntax: public virtual System.Collections.IDictionaryEnumerator GetEnumerator (); Return Value: It returns an IDictionaryEnumerator… Read More
List<T>.GetEnumerator Method is used to returns an enumerator that iterates through the List<T>. Syntax: public System.Collections.Generic.List<T>.Enumerator GetEnumerator (); Return Value: It returns an List<T>Enumerator for… Read More
This method is used to return a 16-bit unsigned integer converted from two bytes at a specified position in a byte array.Syntax:   public static ushort… Read More
List<T>.TrimExcess Method is used to set the capacity to the actual number of elements in the List<T>, if that number is less than a threshold… Read More
BitConverter.ToInt32(Byte[], Int32) Method is used to return a 32-bit signed integer converted from four bytes at a specified position in a byte array.Syntax:   public static… Read More
BitConverter.ToDouble() Method is used to return a double-precision floating point number converted from eight bytes at a specified position in a byte array. Syntax: public… Read More
This method is used to returns a single-precision floating-point number converted from four bytes at a specified position in a byte array. Syntax: public static… Read More
BitConverter.Int64BitsToDouble(Int64) Method is used to convert the specified 64-bit signed integer to a double-precision floating point number. Syntax: public static double Int64BitsToDouble (long value); Parameters:… Read More
BitConverter.DoubleToInt64Bits(Double) Method is used to convert the specified double-precision floating point number to a 64-bit signed integer. Syntax: public static long DoubleToInt64Bits (double value); Here,… Read More
This method is used to return a 16-bit signed integer converted from two bytes at a specified position in a byte array. Syntax:  public static… Read More
This method is used to return a Boolean value converted from the byte at a specified position in a byte array. Syntax: public static bool… Read More
This method is used to return a Unicode character converted from two bytes at a specified position in a byte array.Syntax:   public static char ToChar… Read More
Array.ConvertAll(TInput[], Converter<TInput, TOutput>) Method is used to convert an array of one type to an array of another type. Syntax: public static TOutput[] ConvertAll<TInput,TOutput> (TInput[]… Read More