log4net SDK Reference

NullDictionaryEnumerator.Entry Property

Gets the current entry from the enumerator.

[Visual Basic]
NotOverridable Public ReadOnly Property Entry As DictionaryEntry _
    Implements IDictionaryEnumerator.Entry
[C#]
public System.Collections.DictionaryEntry Entry {get;}

Implements

IDictionaryEnumerator.Entry

Remarks

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

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

Exceptions

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

See Also

NullDictionaryEnumerator Class | log4net.Util Namespace