Adds an element with the provided key and value to the EmptyDictionary.
As the collection is empty no new values can be added. A InvalidOperationException is thrown if this method is called.
Exception Type | Condition |
---|---|
InvalidOperationException | This dictionary is always empty and cannot be modified. |
EmptyDictionary Class | log4net.Util Namespace