public Tester(Tester other) { foreach (PropertyInfo property in other.GetType().GetRuntimeProperties()) { property.SetValue(this, property.GetValue(other)); } }
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); }