Class NonGenericDictionary

NonGenericDictionary class

Represents a non generic dictionary.

public class NonGenericDictionary : IDictionary

Constructors

NameDescription
NonGenericDictionary(IDictionary)Initializes a new instance of the NonGenericDictionary class.

Properties

NameDescription
Count { get; }Gets the number of elements contained in the ICollection.
IsFixedSize { get; }Gets a value indicating whether the IDictionary object has a fixed size.
IsReadOnly { get; }Gets a value indicating whether the IDictionary object is read-only.
IsSynchronized { get; }Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Item { get; set; }Gets or sets the element with the specified key.
Keys { get; }Gets an ICollection object containing the keys of the IDictionary object.
SyncRoot { get; }Gets an object that can be used to synchronize access to the ICollection.
Values { get; }Gets an ICollection object containing the values in the IDictionary object.

Methods

NameDescription
Add(object, object)Adds an element with the provided key and value to the IDictionary object.
Clear()Removes all elements from the IDictionary object.
Contains(object)Determines whether the IDictionary object contains an element with the specified key.
CopyTo(Array, int)Copies the elements of the ICollection to an Array, starting at a particular Array index.
GetEnumerator()Gets the enumerator.
Remove(object)Removes the element with the specified key from the IDictionary object.

See Also