NullEnumerator Current Property | Apache log4net™ SDK Documentation

Gets the current object 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 Object Current { get; }

    Public ReadOnly Property Current As Object
    	Get

    public:
    virtual property Object^ Current {
    	Object^ get () sealed;
    }

    abstract Current : Object with get
    override Current : Object with get

#### Property Value

Type: Object

#### Implements

IEnumerator
Current
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 value.
Remarks

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

See Also

#### Reference

NullEnumerator Class
log4net.Util Namespace