Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

NullDictionaryEnumerator.Value Property

Gets the current value from the enumerator.

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

Property Value

The current value from the enumerator.

Implements

IDictionaryEnumerator.Value

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 Value 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