Show / Hide Table of Contents

    Class MemberInfoExtensions

    Extension methods for the System.Reflection.MemberInfo.

    Inheritance
    System.Object
    MemberInfoExtensions
    Namespace: Cuemon.Reflection
    Assembly: Cuemon.Core.dll
    Syntax
    public static class MemberInfoExtensions

    Methods

    | Improve this Doc

    HasAttributes(MemberInfo, Boolean, Type[])

    Determines whether the specified source type contains one or more of the specified attribute target types.

    Declaration
    public static bool HasAttributes(this MemberInfo source, bool inherit, params Type[] targets)
    Parameters
    Type Name Description
    System.Reflection.MemberInfo source

    The member to match against.

    System.Boolean inherit

    true to search the source inheritance chain to find the attributes; otherwise, false.

    System.Type[] targets

    The attribute target types to be matched against.

    Returns
    Type Description
    System.Boolean

    true if the specified member contains one or more of the specified attribute target types; otherwise, false.

    | Improve this Doc

    HasAttributes(MemberInfo, Type[])

    Determines whether the specified source type contains one or more of the specified attribute target types.

    Declaration
    public static bool HasAttributes(this MemberInfo source, params Type[] targets)
    Parameters
    Type Name Description
    System.Reflection.MemberInfo source

    The member to match against.

    System.Type[] targets

    The attribute target types to be matched against.

    Returns
    Type Description
    System.Boolean

    true if the specified member contains one or more of the specified attribute target types; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX