Skip to content

Tag Archives: CSharp-method

Methods in C# programming language

OrderedDictionary.Contains(Object) method is used to check whether the OrderedDictionary collection contains a specific key or not. Syntax: public bool Contains (object key); Here, key is… Read More
OrderedDictionary.Add(Object, Object) method is used to add an entry with the specified key and value into the OrderedDictionary collection with the lowest available index. Syntax:… Read More
OrderedDictionary.AsReadOnly method returns a read-only copy of the current OrderedDictionary collection. Syntax: public System.Collections.Specialized.OrderedDictionary AsReadOnly (); Return Value: A read-only copy of the current OrderedDictionary… Read More
HybridDictionary.GetEnumerator method is used to return an IDictionaryEnumerator that iterates through the HybridDictionary. Syntax: public System.Collections.IDictionaryEnumerator GetEnumerator (); Return Value: It returns an IDictionaryEnumerator (An… Read More
HybridDictionary.Add(Object, Object) method is used to add an entry with the specified key and value into the HybridDictionary. Syntax: public void Add (object key, object… Read More
HybridDictionary.IsReadOnly property is used to get a value that indicates whether the HybridDictionary is read-only or not. Syntax: public bool IsReadOnly { get; } Return… Read More
HybridDictionary.Contains(Object) method is used to determine whether the HybridDictionary contains a specific key or not. Syntax: public bool Contains (object key); Here, key is the… Read More
HybridDictionary.Clear method is used to remove all entries from the HybridDictionary. Syntax: public void Clear (); Below given are some examples to understand the implementation… Read More
HybridDictionary.CopyTo(Array, Int32) method is used to copy the HybridDictionary entries to a one-dimensional Array instance at the specified index. Syntax: public void CopyTo (Array array,… Read More
ListDictionary.Contains(Object) method is used to check whether the ListDictionary contains a specific key or not. Syntax: public bool Contains (object key); Here, key is the… Read More
ListDictionary.Remove(Object) method is used to remove the entry with the specified key from the ListDictionary. Syntax: public void Remove (object key); Here, key is the… Read More
ListDictionary.Clear method is used to remove the all entries from the ListDictionary. Syntax: public void Clear (); Below given are some examples to understand the… Read More
ListDictionary.CopyTo(Array, Int32) method is used to copy the ListDictionary entries to a one-dimensional Array instance at the specified index. Syntax: public void CopyTo (Array array,… Read More
ListDictionary.Add(Object, Object) method is used to add an entry with the specified key and value into the ListDictionary. Syntax: public void Add (object key, object… Read More
StringDictionary.ContainsValue(String) method is used to check whether the StringDictionary contains a specific value or not. Syntax: public virtual bool ContainsValue (string value); Here, value is… Read More