EmptyDictionary Class | Apache log4net™ SDK Documentation

An always empty IDictionary.
Inheritance Hierarchy

System
Object
log4net.Util
EmptyDictionary

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

C#
VB
C++
F#
Copy

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

    <SerializableAttribute>
    Public NotInheritable Class EmptyDictionary
    	Implements IDictionary, ICollection, IEnumerable

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

    [<SealedAttribute>]
    [<SerializableAttribute>]
    type EmptyDictionary =
        class
            interface IDictionary
            interface ICollection
            interface IEnumerable
        end

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.

Top
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 | Determines whether the specified Object is equal to the current Object. (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 | 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

log4net.Util Namespace