IDictionary

IDictionary


This provides a standard interface to be impelments by key-value list collection.


Public:

Properties:

NameDescription
 Count (get) Returns the size of the collection.  
 IsFixedSize (get) Returns if this instance is fixed-size.  
 IsReadOnly (get) Returns if this instance is read-only.  
 Item (get) Returns an item from the list that is associated with the specified key.  
 Item (let) Sets the value in the list that is associated to the specified key.  
 Item (set) Sets the value in the list that is associated to the specified key.  
 Keys (get) Returns a collection of the keys in the list.  
 Values (get) Returns a collection of the values in the list.  

Methods:

NameDescription
 Add Adds a new value that is associated with the key to the list.  
 Clear Clears the list of its contents.  
 Contains Searches for the existence of the key in the list.  
 CopyTo Copies the contents of the collection to an array.  
 GetEnumerator Returns an IDictionaryEnumerator object.  
 Remove Removes a value from the list that is associated to the key.  

Remarks


Lists that maintain a key-value pair should implement this interface to allow cross-compatibility usage amongst all key-value pair lists.

See Also

Project CorLib Overview

Class IDictionary Overview