Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

ArrayList.TrimToSize Method is used to set the capacity to the actual number of elements in the ArrayList. It can be used to minimize a collection’s… Read More
AddRange(ICollection) Method is used to add the elements of an ICollection to the end of the ArrayList. Or in other words, this method is used… Read More
GetUpperBound() Method is used to find the index of the last element of the specified dimension in the array. Syntax: public int GetUpperBound (int dimension);… Read More
Array.Resize(T[], Int32) Method is used to resize the number of elements present in the array. Or in other words, this method is used to change… Read More
GetHashCode() method is used to get the hash code of the specified string. When you apply this method to the string this method will return… Read More
GetLowerBound() Method is used to find the index of the first element of the specified dimension in the array. Syntax: public int GetLowerBound (int dimension);… Read More
String.IsInterned(String) Method method is used to retrieve a reference to a specified String. This method looks up the specified string in the intern pool. If the… Read More
Array.Exists(T[], Predicate<T>) Method is used to check whether the specified array contains elements that match the conditions defined by the specified predicate. Syntax: public static… Read More
String.Concat Method is used to concatenate one or more instances of String or the String representations of the values of one or more instances of… Read More
Object.GetType Method is used to find the type of the current instance. This method returns the instances of the Type class that are used for… Read More
ArrayList.SetRange(Int32, ICollection) Method is used to copy the elements of a collection over a range of elements in the ArrayList. Syntax: public virtual void SetRange… Read More
ArrayList.Sort Method is used to sorts the elements in the ArrayList. There are total 3 methods in the overload list of this method as follows:… Read More
String.Copy(String) Method is used to create a new instance of String with the same value as a specified String. In other words, this method is… Read More
String.Intern(String) Method is used to retrieve the system’s reference to the specified String. This method uses the intern pool to search for a string equal… Read More
ArrayList.ToArray Method is used to copy the elements of the ArrayList to a new array. This method contains two methods in its overload list as… Read More