Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

ArrayList.Repeat(Object, Int32) Method is used to return an ArrayList whose elements are copies of the specified value. Or in other words, this method is used… Read More
OrderedDictionary.Insert(Int32, Object, Object) method is used to insert a new entry into the OrderedDictionary collection with the specified key and value at the specified index.… Read More
OrderedDictionary.RemoveAt(Int32) method is used to remove the entry at the specified index from the OrderedDictionary collection. Syntax: public void RemoveAt (int index); Here, index is… Read More
OrderedDictionary.GetEnumerator method returns an IDictionaryEnumerator object that iterates through the OrderedDictionary collection. Syntax: public virtual System.Collections.IDictionaryEnumerator GetEnumerator (); Return Value: An IDictionaryEnumerator object for the… Read More
OrderedDictionary.Remove(Object) method is used to remove entry with the specified key from the OrderedDictionary collection. Syntax: public void Remove (object key); Here, key is the… Read More
OrderedDictionary.Clear method is used to remove all elements from the OrderedDictionary collection. Syntax: public void Clear (); Exception: If the OrderedDictionary collection is read-only then… Read More
HybridDictionary.Remove(Object) method is used to remove the entry with the specified key from the HybridDictionary. Syntax: public void Remove (object key); Here, key is the… Read More
Collection<T>.IndexOf(T) method is used to search for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>. Syntax: public… Read More
Collection<T>.Add(T) method is used to add an object to the end of the Collection<T>. Syntax : public void Add (T item); Here, item is the… Read More
Collection<T>.Clear method is used to remove all elements from the Collection<T>. Syntax: public void Clear (); Below given are some examples to understand the implementation… Read More
Collection<T>.CopyTo(T[], Int32) method is used to copy the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array. Syntax:… Read More
Collection<T>.RemoveAt(Int32) is used to remove the element at the specified index of the Collection<T>. Syntax: public void RemoveAt (int index); Here, index is the zero-based… Read More
Collection<T>.Insert(Int32, T) method is used to insert an element into the Collection<T> at the specified index. Syntax: public void Insert (int index, T item); Parameters:… Read More
Collection<T>.Contains(T) method is used to determine whether an element is in the Collection<T>. Syntax: public bool Contains (T item); Here, item is the object to… Read More
Collection<T>.Remove(T) is used to remove the first occurrence of a specific object from the Collection<T>. Syntax: public bool Remove (T item); Here, item is the… Read More