public void CopyTo(DbObject obj) { string[] allDataNames = this.GetAllDataNames(); lock (obj._slot.SyncRoot) { foreach (string str in allDataNames) { bool flag; obj.SetDataInternal(str, this.GetDataInternal(str, out flag)); } } }
public override void SetValue(object component, object value) { DbObject obj2 = component as DbObject; if ((obj2 != null) && obj2.ContainData(this.Name)) { obj2.SetDataInternal(this.Name, value); } else { PropertyInfo property = component.GetType().GetProperty(this.Name); if (property != null) { property.SetValue(component, value, null); } } this.OnValueChanged(component, EventArgs.Empty); }