Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

Array.ForEach(T[], Action<T>) Method is used to perform the specified action on each element of the specified array.  Syntax:   public static void ForEach<T> (T[] array, Action<T>… Read More
This method is used to search for an element that matches the conditions defined by the specified predicate and returns the last occurrence within the… Read More
This method is used to return an IEnumerator for the Array. Syntax: public System.Collections.IEnumerator GetEnumerator (); Return Value: This method returns an IEnumerator for the… Read More
This method is used to determine whether every element in the array matches the conditions defined by the specified predicate.Syntax:   public static bool TrueForAll (T[]… Read More
This method is used to copy a range of elements from an Array starting at the specified source index and pastes them to another Array… Read More
This method is used to retrieve all the elements that match the conditions defined by the specified predicate. Syntax: public static T[] FindAll (T[] array,… Read More
This method is used to search for an element that matches the conditions defined by the specified predicate and returns the first occurrence within the… Read More
This method is used to set a range of elements in an array to the default value of each element type. Syntax: public static void… Read More
This method is used to return a read-only wrapper for the specified array. Syntax: public static System.Collections.ObjectModel. ReadOnlyCollection<T> AsReadOnly<T> (T[] array); Here, T is the… Read More
Array.GetLength(Int32) Method is used to find the total number of elements present in the specified dimension of the Array. Syntax:   public int GetLength (int dimension); Here,… Read More
String.Equals Method method is used to check whether the two String objects have the same value. This method can be overloaded by passing different numbers… Read More
String.ToLowerInvariant Method is used to get a copy of this String object converted to lowercase using the casing rules of the invariant culture. Here, “invariant… Read More
String.ToUpperInvariant Method is used to get a copy of this String object converted to uppercase using the casing rules of the invariant culture. Here “invariant… Read More
IsNormalized() method is used to check whether the given string is in a particular Unicode normalization form or not. If the given string is in… Read More
GetTypeCode() method is used to get the TypeCode of the specified string. Here TypeCode enum represents a specific type of object. In TypeCode every data… Read More