void IManagedPropertyMetadataInternal.RaisePropertyChangedMetaEvent(ManagedPropertyObject sender, ManagedPropertyChangedEventArgs e) { if (this._propertyChangedCallBack != null) { this._propertyChangedCallBack(sender, e); } }
void IManagedPropertyInternal.RaiseReadOnlyPropertyChanged(ManagedPropertyObject sender, ManagedPropertyChangedSource source) { //直接装箱,以免下行代码装箱两次。 object nonValue = default(TPropertyType); sender.RaisePropertyChanged(new ManagedPropertyChangedEventArgs(this, nonValue, nonValue, source)); }
internal CompiledPropertyValuesEnumerator(ManagedPropertyObject mpo) { _index = -1; _mpo = mpo; _current = new ManagedPropertyField(); _properties = mpo.PropertiesContainer.GetCompiledProperties(); }
internal NonDefaultPropertyValuesEnumerator(ManagedPropertyObject mpo) { _index = -1; _mpo = mpo; _current = new ManagedPropertyField(); _runtimeFields = null; _enumerateRuntimeFields = false; }
object IManagedPropertyMetadataInternal.CoerceGetValue(ManagedPropertyObject sender, object value) { if (this._coerceGetValueCallBack != null) { return(this._coerceGetValueCallBack(sender, (TPropertyType)value)); } return(value); }
internal TPropertyType CoerceGetValue(ManagedPropertyObject sender, TPropertyType value) { if (this._coerceGetValueCallBack != null) { return(this._coerceGetValueCallBack(sender, value)); } return(value); }
internal bool RaisePropertyChangingMetaEvent(ManagedPropertyObject sender, ref TPropertyType value, ManagedPropertyChangedSource source) { if (this._propertyChangingCallBack != null) { var e = new ManagedPropertyChangingEventArgs <TPropertyType>(this._property, value, source); this._propertyChangingCallBack(sender, e); if (e.HasCoercedValue) { value = e.CoercedValue; } return(e.Cancel); } return(false); }
object IManagedPropertyInternal.ProvideReadOnlyValue(ManagedPropertyObject component) { return(this._readOnlyValueProvider(component)); }
public ManagedPropertyObjectTypeProxy(ManagedPropertyObject mpo) { _mpo = mpo; }
void IValidationRule.Validate(ManagedPropertyObject entity, RuleArgs e) { this.Validate(entity as Entity, e); }