Esempio n. 1
0
 public string this [int i1, string i2, ISpam i3] {
     get {
         string key = i1.ToString() + i2.ToString() +
                      i3.GetHashCode().ToString();
         object value = t[key];
         if (value != null)
         {
             return((string)value);
         }
         return(null);
     }
     set {
         string key = i1.ToString() + i2.ToString() +
                      i3.GetHashCode().ToString();
         t[key] = value;
     }
 }
Esempio n. 2
0
 public string this [int i1, string i2, ISpam i3] {
     get { 
         string key = i1.ToString() + i2.ToString() + 
                      i3.GetHashCode().ToString();
         object value = t[key];
         if (value != null) {
             return (string)value;
         }
         return null;
     }
     set { 
         string key = i1.ToString() + i2.ToString() + 
                      i3.GetHashCode().ToString();
         t[key] = value; 
     }
 }
Esempio n. 3
0
 public string this [ISpam index] {
     get { return GetValue(index); }
     set { t[index] = value; }
 }
Esempio n. 4
0
 public string this [ISpam index] {
     get { return(GetValue(index)); }
     set { t[index] = value; }
 }
Esempio n. 5
0
 public FieldTest()
 {
     EnumField = ShortEnum.Zero;
     SpamField = new Spam("spam");
     StringField = "spam";
 }
 public ConversionTest()
 {
     EnumField = ShortEnum.Zero;
     SpamField = new Spam("spam");
     StringField = "spam";
 }