private void CopyFields(ScoreEntry scoreEntry) { foreach (PropertyInfo prop in scoreEntry.GetType().GetProperties()) { GetType().GetProperty(prop.Name).SetValue(this, prop.GetValue(scoreEntry, null), null); } }