EmptyDictionary ClassApache log4net™ SDK Documentation
An always empty IDictionary.
Inheritance Hierarchy

SystemObject
  log4net.UtilEmptyDictionary

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

[SerializableAttribute]
public sealed class EmptyDictionary : IDictionary, 
	ICollection, IEnumerable

The EmptyDictionary type exposes the following members.

Properties

  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection
Public propertyStatic memberInstance
Gets the singleton instance of the EmptyDictionary.
Public propertyIsFixedSize
Gets a value indicating whether the EmptyDictionary has a fixed size.
Public propertyIsReadOnly
Gets a value indicating whether the EmptyDictionary is read-only.
Public propertyIsSynchronized
Gets a value indicating if access to the ICollection is synchronized (thread-safe).
Public propertyItem
Gets or sets the element with the specified key.
Public propertyKeys
Gets an ICollection containing the keys of the EmptyDictionary.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Public propertyValues
Gets an ICollection containing the values of the EmptyDictionary.
Top
Methods

  NameDescription
Public methodAdd
Adds an element with the provided key and value to the EmptyDictionary.
Public methodClear
Removes all elements from the EmptyDictionary.
Public methodContains
Determines whether the EmptyDictionary contains an element with the specified key.
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that can iterate through a collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the element with the specified key from the EmptyDictionary.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

A singleton implementation of the IDictionary interface that always represents an empty collection.

See Also

Reference