Пример #1
0
 public virtual object this[ObjectIndexerKey key]
 {
     get
     {
         if (key == null)
         {
             throw new ArgumentNullException("key");
         }
         return(fields[key.ToString().ToLowerInvariant()]);
     }
     set
     {
         if (key == null)
         {
             throw new ArgumentNullException("key");
         }
         fields[key.ToString().ToLowerInvariant()] = value;
     }
 }
Пример #2
0
 object IObjectIndexers.this[ObjectIndexerKey key]
 {
     get { throw new NotSupportedException(); }
     set { throw new NotSupportedException(); }
 }