class MAGES::DefaultValueLocatorAttribute¶
Overview¶
A supporting class for OverridableProperty<T> that allows the default value to be located dynamically. More…
class DefaultValueLocatorAttribute: public Attribute { public: // classes class LocatorData; // properties LocatorData Data; Type DefaultValueType; // methods DefaultValueLocatorAttribute(Type type, Type locatorType, string key); T GetValue< T >(); };
Detailed Documentation¶
A supporting class for OverridableProperty<T> that allows the default value to be located dynamically.
Properties¶
LocatorData Data
Gets the data for the locator.
Type DefaultValueType
Gets the type of the default value.
Methods¶
DefaultValueLocatorAttribute(Type type, Type locatorType, string key)
Initializes a new instance of the DefaultValueLocatorAttribute class.
Parameters:
type |
The expected type. |
locatorType |
The type of the locator. |
key |
The key to locate. |
T GetValue< T >()
Gets the instance of the default value.
Parameters:
T |
The type of the default value. |
Returns:
The casted value.