Gets or sets the element with the specified key.
null
As the collection is empty no values can be looked up or stored. If the index getter is called then null
is returned. A InvalidOperationException is thrown if the setter is called.
Exception Type | Condition |
---|---|
InvalidOperationException | This dictionary is always empty and cannot be modified. |
EmptyDictionary Class | log4net.Util Namespace