public void CopyFrom(OverallStats updated) { foreach (var p in typeof(OverallStats).GetProperties().Where(p => p.CanWrite)) { p.SetValue(this, p.GetValue(updated, null), null); } } }