RemoveAttributes(IAdviser<IDeclaration>, INamedType)
Removes all custom attributes of a given INamedType from a given declaration. Use the With<TNewDeclaration>(TNewDeclaration) method to apply the advice to another declaration than the current one.
Declaration
public static IRemoveAttributesAdviceResult RemoveAttributes(this IAdviser<IDeclaration> adviser, INamedType attributeType)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IDeclaration> | adviser | An adviser for a declaration. |
| INamedType | attributeType | The type of custom attributes to be removed. |
Returns
| Type | Description |
|---|---|
| IRemoveAttributesAdviceResult |
RemoveAttributes(IAdviser<IDeclaration>, Type)
Removes all custom attributes of a given Type from a given declaration. Use the With<TNewDeclaration>(TNewDeclaration) method to apply the advice to another declaration than the current one.
Declaration
public static IRemoveAttributesAdviceResult RemoveAttributes(this IAdviser<IDeclaration> adviser, Type attributeType)Parameters
| Type | Name | Description |
|---|---|---|
| IAdviser<IDeclaration> | adviser | An adviser for a declaration. |
| Type | attributeType | The type of custom attributes to be removed. |
Returns
| Type | Description |
|---|---|
| IRemoveAttributesAdviceResult |