public MetadataObject(MetadataObject copy) { foreach(var property in this.GetType().GetProperties()) { property.SetValue(this, copy.GetType().GetProperty(property.Name).GetValue(copy)); } }
public MetadataObject(MetadataObject copy) { foreach(var property in this.GetType().GetProperties()) { property.SetValue(this, copy.GetType().GetProperty(property.Name).GetValue(copy)); } }