示例#1
0
 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
 }
示例#2
0
            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());
            }