Skip to content

Tag Archives: CSharp-Specialized-OrderedDictionary

OrderedDictionary() constructor is used to initialize a new instance of the OrderedDictionary class which will be empty and will have the default initial capacity. OrderedDictionary… Read More
Equals(Object) Method which is inherited from the Object class is used to check if a specified OrderedDictionary object is equal to another OrderedDictionary object or… 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
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
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.Keys property is used to get an ICollection object containing the keys in the OrderedDictionary collection. Syntax: public System.Collections.ICollection Keys { get; } Return Value:… Read More
OrderedDictionary.Values property is used to get an ICollection object containing the values in the OrderedDictionary collection. Syntax: public System.Collections.ICollection Values { get; } Return Value:… 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.Count property is used to get the number of key/values pairs contained in the OrderedDictionary collection. Syntax: public int Count { get; } Return Value:… 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
OrderedDictionary Class represents a collection of key/value pairs that are accessible by the key or index. It is present in System.Collections.Specialized namespace. Properties of OrderedDictionary… Read More
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.IsReadOnly property is used to get a value that indicates whether the OrderedDictionary collection is read-only or not. Syntax : public bool IsReadOnly { get;… Read More