NullDictionaryEnumerator Entry Property | Apache log4net™ SDK Documentation

Gets the current entry from the enumerator.

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

C#
VB
C++
F#
Copy

    public DictionaryEntry Entry { get; }

    Public ReadOnly Property Entry As DictionaryEntry
    	Get

    public:
    virtual property DictionaryEntry Entry {
    	DictionaryEntry get () sealed;
    }

    abstract Entry : DictionaryEntry with get
    override Entry : DictionaryEntry with get

#### Property Value

Type: DictionaryEntry

#### Implements

IDictionaryEnumerator
Entry
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | The collection is empty and Current cannot be positioned over a valid location.

Remarks

Throws an InvalidOperationException because the NullDictionaryEnumerator never has a current entry.
Remarks

As the enumerator is over an empty collection its Current value cannot be moved over a valid position, therefore Entry will throw an InvalidOperationException.

See Also

#### Reference

NullDictionaryEnumerator Class
log4net.Util Namespace