Search Results for

    Show / Hide Table of Contents

    Class AttributeHelper

    Provides a platform-independent methods for getting attributes for use by AttributeConstraint and AttributeExistsConstraint.

    Inheritance
    object
    AttributeHelper
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Compatibility
    Assembly: nunit.framework.dll
    Syntax
    public static class AttributeHelper

    Methods

    View Source

    GetCustomAttributes(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.

    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0