class MAGES::DefaultValueLocatorAttribute::LocatorData¶
Overview¶
A class that holds the data for the locator. More…
class LocatorData { public: // properties Type LocatorType; Type Type; string Key; // methods LocatorData(); LocatorData(Type locatorType, Type type, string key); T Resolve< T >(); };
Detailed Documentation¶
A class that holds the data for the locator.
Properties¶
Type LocatorType
Gets or sets the type of the locator.
Type Type
Gets or sets the type of the default value.
string Key
Gets or sets the key to pass to the locator.
Methods¶
LocatorData()
Initializes a new instance of the LocatorData class.
LocatorData(Type locatorType, Type type, string key)
Initializes a new instance of the LocatorData class.
Parameters:
locatorType |
The type that will be created to locate a default value. |
type |
The type of the default value. |
key |
The key to pass to the locator class. |
T Resolve< T >()
Resolves the default value.
Parameters:
T |
The type to cast it to. |
Returns:
The resolved value; either default or overriden.