Example #1
0
 public Tester(Tester other)
 {
     foreach (PropertyInfo property in other.GetType().GetRuntimeProperties())
     {
         property.SetValue(this, property.GetValue(other));
     }
 }
Example #2
0
 public Tester(Tester other)
 {
     notifications = new List <Notification>(other.notifications);
     foreach (PropertyInfo property in other.GetType().GetProperties())
     {
         if (property.CanWrite)
         {
             property.SetValue(this, property.GetValue(other));
         }
     }
     schedule = new Schedule(other.schedule);
 }