An always empty IDictionary.
Inheritance Hierarchy
log4net.UtilEmptyDictionary
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
[SerializableAttribute] public sealed class EmptyDictionary : IDictionary, ICollection, IEnumerable
The EmptyDictionary type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the ICollection | |
Instance |
Gets the singleton instance of the EmptyDictionary.
| |
IsFixedSize |
Gets a value indicating whether the EmptyDictionary has a fixed size.
| |
IsReadOnly |
Gets a value indicating whether the EmptyDictionary is read-only.
| |
IsSynchronized |
Gets a value indicating if access to the ICollection is synchronized (thread-safe).
| |
Item |
Gets or sets the element with the specified key.
| |
Keys |
Gets an ICollection containing the keys of the EmptyDictionary.
| |
SyncRoot |
Gets an object that can be used to synchronize access to the ICollection.
| |
Values |
Gets an ICollection containing the values of the EmptyDictionary.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds an element with the provided key and value to the
EmptyDictionary.
| |
Clear |
Removes all elements from the EmptyDictionary.
| |
Contains |
Determines whether the EmptyDictionary contains an element
with the specified key.
| |
CopyTo |
Copies the elements of the ICollection to an
Array, starting at a particular Array index.
| |
Equals | (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that can iterate through a collection.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
Remove |
Removes the element with the specified key from the EmptyDictionary.
| |
ToString | (Inherited from Object.) |
Remarks
A singleton implementation of the IDictionary interface that always represents an empty collection.
See Also