Class AttributeHelper
Provides a platform-independent methods for getting attributes for use by AttributeConstraint and AttributeExistsConstraint.
Inherited Members
Namespace: NUnit.Compatibility
Assembly: nunit.framework.dll
Syntax
public static class AttributeHelperMethods
View SourceGetCustomAttributes(object, Type, bool)
Gets the custom attributes from the given object.
Declaration
public static Attribute[] GetCustomAttributes(object actual, Type attributeType, bool inherit)Parameters
| Type | Name | Description | 
|---|---|---|
| object | actual | The actual. | 
| Type | attributeType | Type of the attribute. | 
| bool | inherit | if set to true [inherit]. | 
Returns
| Type | Description | 
|---|---|
| Attribute[] | A list of the given attribute on the given object. |