Construct(IAttribute)
Constructs an instance of the attribute represented by the current IAttribute. The attribute type must not be a run-time-only type.
Declaration
public static Attribute Construct(this IAttribute attribute)Parameters
| Type | Name | Description |
|---|---|---|
| IAttribute | attribute | The attribute to construct. |
Returns
| Type | Description |
|---|---|
| Attribute | The constructed attribute instance. |
Construct<T>(IAttribute)
Constructs an instance of the attribute represented by the current IAttribute. The attribute type must not be a run-time-only type.
Declaration
public static T Construct<T>(this IAttribute attribute) where T : AttributeParameters
| Type | Name | Description |
|---|---|---|
| IAttribute | attribute | The attribute to construct. |
Returns
| Type | Description |
|---|---|
| T | The constructed attribute instance. |
Type Parameters
| Name | Description |
|---|---|
| T | The expected attribute type. |