public TrackPropertyChangeScope(DictionaryAdapterBase adapter, PropertyDescriptor property, object existingValue) : this(adapter) { this.property = property; this.existingValue = existingValue; existingValue = adapter.GetProperty(property.PropertyName, true); // TODO: This looks unnecessary }
private object GetEffectivePropertyValue(PropertyDescriptor property) { var value = adapter.GetProperty(property.PropertyName, true); if (value != null & property.IsDynamicProperty) { value = ((IDynamicValue)value).GetValue(); } return(value); }
private object GetEffectivePropertyValue(PropertyDescriptor property) { var value = adapter.GetProperty(property.PropertyName, true); if (value == null || !property.IsDynamicProperty) { return(value); } var dynamicValue = value as IDynamicValue; if (dynamicValue == null) { return(value); } return(dynamicValue.GetValue()); }
public TrackPropertyChangeScope(DictionaryAdapterBase adapter, PropertyDescriptor property, object existingValue) : this(adapter) { this.property = property; this.existingValue = existingValue; existingValue = adapter.GetProperty(property.PropertyName); }