123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- #region Apache License
- #endregion
- using System;
- using System.Collections;
- namespace log4net.Util
- {
-
-
-
-
-
-
-
-
-
-
-
- public sealed class NullDictionaryEnumerator : IDictionaryEnumerator
- {
- #region Private Instance Constructors
-
-
-
-
-
-
-
-
- private NullDictionaryEnumerator()
- {
- }
- #endregion Private Instance Constructors
- #region Public Static Properties
-
-
-
-
-
-
-
-
-
-
- public static NullDictionaryEnumerator Instance
- {
- get { return s_instance; }
- }
- #endregion Public Static Properties
- #region Implementation of IEnumerator
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public object Current
- {
- get { throw new InvalidOperationException(); }
- }
-
-
-
-
-
-
-
-
-
-
-
-
- public bool MoveNext()
- {
- return false;
- }
-
-
-
-
-
-
-
-
-
- public void Reset()
- {
- }
- #endregion Implementation of IEnumerator
- #region Implementation of IDictionaryEnumerator
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public object Key
- {
- get { throw new InvalidOperationException(); }
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public object Value
- {
- get { throw new InvalidOperationException(); }
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public DictionaryEntry Entry
- {
- get { throw new InvalidOperationException(); }
- }
-
- #endregion Implementation of IDictionaryEnumerator
- #region Private Static Fields
-
-
-
- private readonly static NullDictionaryEnumerator s_instance = new NullDictionaryEnumerator();
-
- #endregion Private Static Fields
- }
- }
|