Skip to content

Tag Archives: CSharp-Specialized-ListDictionary

ListDictionary() constructor is used to initialize a new empty instance of the ListDictionary class using the default comparer. ListDictionary is a specialized collection. It comes… Read More
ListDictionary.SyncRoot Property is used to get an object which can be used to synchronize access to the ListDictionary. ListDictionary is a specialized collection. It comes… Read More
Equals(Object) Method which is inherited from the Object class is used to check if a specified ListDictionary object is equal to another ListDictionary object or… 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
ListDictionary is a specialized collection. It comes under the System.Collections.Specialized namespace. This type represents a non-generic dictionary type. It is implemented with a linked list.… Read More
ListDictionary.IsSynchronized property is used to get a value indicating whether the ListDictionary is synchronized (thread safe) or not. Syntax: public bool IsSynchronized { get; }… Read More
ListDictionary.IsFixedSize property is used to get a value indicating whether the ListDictionary has a fixed size or not. Syntax: public bool IsFixedSize { get; }… Read More
ListDictionary.Values property is used to get an ICollection containing the values in the ListDictionary. Syntax: public System.Collections.ICollection Values { get; } Return Value : It… 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.Keys property is used to get an ICollection containing the keys in the ListDictionary. Syntax: public System.Collections.ICollection Keys { get; } Return Value : It… 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
ListDictionary.Item[Object] property is used to get or set the value associated with the specified key. Syntax: public object this[object key] { get; set; } Here,… Read More