Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

SortedList.GetKey(Int32) Method is used to get the key at the specified index of a SortedList object. Syntax: public virtual object GetKey (int index); Here, index… Read More
This method is used to return a 32-bit unsigned integer converted from four bytes at a specified position in a byte array.Syntax:  public static uint… Read More
This method is used to convert the specified string representation of a logical value to its Boolean equivalent. It returns a value that indicates whether… Read More
ArrayList.GetEnumerator(Int32, Int32) method is used to get an enumerator for a range of elements in the ArrayList. Syntax: public virtual System.Collections.IEnumerator GetEnumerator (int index, int… Read More
ArrayList.GetEnumerator Method is used to get an enumerator for the entire ArrayList. Syntax: public virtual System.Collections.IEnumerator GetEnumerator (); Return Value: It returns an IEnumerator for… Read More
ArrayList.AddRange(ICollection) Method is used to add the elements of an ICollection to the end of the ArrayList. Syntax: public virtual void AddRange (System.Collections.ICollection c); Here,… Read More
OrderedDictionary.Insert(Int32, Object, Object) Method is used to inserts a new entry into the OrderedDictionary collection with the specified key and value at the specified index.… Read More
In C#, a method can return any type of data including objects. In other words, methods are allowed to return objects without any compile time… Read More
StringCollection.GetEnumerator Method is used to get a StringEnumerator that iterates through the StringCollection. Syntax: public System.Collections.Specialized.StringEnumerator GetEnumerator (); Return Value: This method returns a StringEnumerator… Read More
Collection<T>.GetEnumerator Method is used to get an enumerator that iterates through the Collection<T>. Syntax: public System.Collections.Generic.IEnumerator<T> GetEnumerator (); Return Value: This method returns an IEnumerator<T>… Read More
Hashtable.Contains(Object) Method is used to check whether the Hashtable contains a specific key or not. Syntax: public virtual bool Contains (object key); Here, key is… Read More
OrderedDictionary.CopyTo(Array, Int32) method is used to copy the OrderedDictionary elements to a one-dimensional Array object at the specified index. Syntax: public void CopyTo (Array array,… Read More
SortedSet<T>.GetEnumerator Method is used to return an enumerator that iterates through the SortedSet<T>. Syntax: public System.Collections.Generic.SortedSet<T>.Enumerator GetEnumerator (); Return Value: This method returns an enumerator… Read More
ListDictionary.GetEnumerator method is used to returns an IDictionaryEnumerator that iterates through the ListDictionary. Syntax: public System.Collections.IDictionaryEnumerator GetEnumerator (); Return Value: This method returns an IDictionaryEnumerator… Read More
This method is used to return a 64-bit signed integer converted from eight bytes at a specified position in a byte array.Syntax:   public static long… Read More