Property Count
Count
Gets the number of entries in the dictionary.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The count includes entries whose values have been garbage collected but have not yet been removed from the dictionary, so it may briefly exceed the number of entries that enumeration returns.
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The dictionary has been disposed. |