public void CopyTimer(TimerInfo parent) { foreach (PropertyInfo prop in parent.GetType().GetProperties()) { GetType().GetProperty(prop.Name).SetValue(this, prop.GetValue(parent, null), null); } }