Beispiel #1
0
 public Field(Field field)
 {
     Copy(field);
 }
Beispiel #2
0
 public void Copy(Field obj)
 {
     // copy all of the properties
     foreach (PropertyInfo pi in this.GetType().GetProperties())
     {
         var val = pi.GetValue(obj, null);
         pi.SetValue(this, val, null);
     }
 }