Example #1
0
 public T this[profession id]
 {
     set
     {
         if (id == profession.NONE)
         {
             _default = value;
         }
         else
         {
             this[id.ToString()] = value;
         }
     }
     get
     {
         if (id == profession.NONE)
         {
             return(_default);
         }
         else
         {
             return(this[id.ToString()]);
         }
     }
 }
Example #2
0
 public bool TryGetValue(profession id, out T result)
 {
     return(TryGetValue(id.ToString(), out result));
 }