Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

NullDictionaryEnumerator.Current Property

Gets the current object from the enumerator.

[Visual�Basic]
NotOverridable�Public�ReadOnly�Property�Current�As�Object�_
����Implements�IEnumerator.Current
[C#]
public�object�Current�{get;}

Implements

IEnumerator.Current

Remarks

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

As the enumerator is over an empty collection its Current value cannot be moved over a valid position, therefore Current 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