Пример #1
0
 public Time this[string key]
 {
     get
     {
         return(Comparisons.ContainsKey(key) ? Comparisons[key] : default(Time));
     }
     set
     {
         if (Comparisons.ContainsKey(key))
         {
             Comparisons[key] = value;
         }
         else
         {
             Comparisons.Add(key, value);
         }
     }
 }