public void Clone(Comment model) { PropertyInfo[] properties = model.GetType().GetProperties(); for (int i = 0; i < properties.Length; i++) { properties[i].SetValue(this, properties[i].GetValue(model)); } }