//------------------------------------------------------------------------------------ /// <summary> /// Sets a value that will be cached locally (not saved to the backing store). /// </summary> //------------------------------------------------------------------------------------ private void SetLocalValue(object value, string publicPropName, PropType type) { EnsureLocalValue(publicPropName, type); LocalProperties[publicPropName] = ItemProperty.GetValue(value, type); }
//------------------------------------------------------------------------------------ /// <summary> /// Returns the current value of the given property. /// </summary> //------------------------------------------------------------------------------------ private object GetValue(string dsPropName, string publicPropName, PropType type) { ItemProperty property = EnsureItemProperty(dsPropName, publicPropName, type); return(property.CurrentValue); }