Exemple #1
0
 public T this[string propertyName]//索引器
 {
     get
     {
         if (!Propertys.ContainsKey(propertyName))
         {
             return(default(T));
         }
         return((T)Propertys[propertyName].GetValue(this));
     }
     set
     {
         if (!Propertys.ContainsKey(propertyName))
         {
             return;
         }
         Propertys[propertyName].SetValue(this, value);
     }
 }