コード例 #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)
                {
                    value = ((IDynamicValue)value).GetValue();
                }
                return(value);
            }
コード例 #3
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());
            }
			public TrackPropertyChangeScope(DictionaryAdapterBase adapter, PropertyDescriptor property,
											object existingValue)
				: this(adapter)
			{
				this.property = property;
				this.existingValue = existingValue;
				existingValue = adapter.GetProperty(property.PropertyName);
			}