GetAllAttributesOfType(INamedType, bool)
Gets all attributes of a given type in the current compilation, where the attribute type is given as an INamedType.
Declaration
IEnumerable<IAttribute> GetAllAttributesOfType(INamedType type, bool includeDerivedTypes = false)Parameters
| Type | Name | Description |
|---|---|---|
| INamedType | type | The attribute type. |
| bool | includeDerivedTypes | A value indicating whether attributes of types derived from |
Returns
| Type | Description |
|---|---|
| IEnumerable<IAttribute> | A list of attributes. |
GetAllAttributesOfType(Type, bool)
Gets all attributes of a given type in the current compilation, where the attribute type is given as a Type.
Declaration
IEnumerable<IAttribute> GetAllAttributesOfType(Type type, bool includeDerivedTypes = false)Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The attribute type. |
| bool | includeDerivedTypes | A value indicating whether attributes of types derived from |
Returns
| Type | Description |
|---|---|
| IEnumerable<IAttribute> | A list of attributes. |