Esempio n. 1
0
 public Test(Test other)//copy ctor
 {
     foreach (PropertyInfo property in other.GetType().GetRuntimeProperties())
     {
         property.SetValue(this, property.GetValue(other));
     }
 }
Esempio n. 2
0
 public Test(Test other)
 {
     foreach (PropertyInfo prop in other.GetType().GetRuntimeProperties())
     {
         prop.SetValue(this, prop.GetValue(other));
     }
 }
Esempio n. 3
0
 public Test(Test other)
 {
     foreach (PropertyInfo property in other.GetType().GetProperties())
     {
         property.SetValue(this, property.GetValue(other));
     }
     testProperties = new TestProperties(other.testProperties);
 }