|
|
| System.Collections.IDictionary Interface |
|
| |
| Description | |
|
Collections are classes that literally hold collections of data, such as lists, queues and stacks. The IDictionary interface defines how such a collection should operate if it has DictionaryEntry elements.
The IDictionary interface provides the following methods :
| Add | Add an item to the list |
| Clear | Clears the list : removes all items |
| Contains | Checks if the list contains an item with a specific key |
| GetEnumerator | Gets an object that implements the IDictionaryEnumerator interface |
| Remove | Removes an item from the list |
|
|
| Properties | | | | IsFixedSize | | Boolean | | When implemented by a class, gets a value indicating whether the IDictionary has a fixed size.
| | IsReadOnly | | Boolean | | When implemented by a class, gets a value indicating whether the IDictionary is read-only.
| | Item | | Object | | When implemented by a class, gets or sets the element with the specified key. This is the principle property, and can be expressed using [] brackets.
| | Keys | | ICollection | | When implemented by a class, gets an ICollection containing the keys of the IDictionary.
| | Values | | ICollection | | When implemented by a class, gets an ICollection containing the values in the IDictionary. |
| Delphi Basics links | | | |
Microsoft MSDN links | |
|
|
|
|
|
| |
|
|
|