Method AddAttribute
AddAttribute<T>()
The caller must pass in an interface type that extends IAttribute. This method first checks if an instance of the corresponding class is already in this AttributeSource and returns it. Otherwise a new instance is created, added to this AttributeSource and returned.
Declaration
public T AddAttribute<T>()
where T : IAttribute
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |