Class AccessorMetadata
Metadata used for providing attached getter/setter to a PropertyKey.
public class AccessorMetadata : PropertyKeyMetadata
- Inheritance
-
AccessorMetadata
Constructors
AccessorMetadata(GetterDelegate, SetterDelegate)
Initializes a new instance of the AccessorMetadata class.
public AccessorMetadata(AccessorMetadata.GetterDelegate getter, AccessorMetadata.SetterDelegate setter)
Parameters
getter
AccessorMetadata.GetterDelegateGetter delegate.
setter
AccessorMetadata.SetterDelegateSetter delegate.
Methods
GetValue(ref PropertyContainer)
Gets the value from a PropertyContainer associated to this getter.
public object GetValue(ref PropertyContainer obj)
Parameters
obj
PropertyContainerthe property container.
Returns
- object
The value stored.
SetValue(ref PropertyContainer, object)
Sets the value for a PropertyContainer value.
public void SetValue(ref PropertyContainer obj, object value)
Parameters
obj
PropertyContainerThe property container.
value
objectThe value to set.