Search Results for

    Show / Hide Table of Contents

    Class MemberInfo

    Obtains information about the attributes of a member and provides access to member metadata.

    Inheritance
    object
    MemberInfo
    FieldInfo
    MethodBase
    PropertyInfo
    Type
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: System.Reflection
    Assembly: mscorlib.dll
    Syntax
    public abstract class MemberInfo
    Remarks

    Available only in mscorlib build with support for System.Reflection.

    Constructors

    MemberInfo()

    Declaration
    protected MemberInfo()

    Properties

    DeclaringType

    Gets the class that declares this member.

    Declaration
    public abstract Type DeclaringType { get; }
    Property Value
    Type Description
    Type

    The Type object for the class that declares this member.

    MemberType

    When overridden in a derived class, gets a MemberTypes value indicating the type of the member method, constructor, event, and so on.

    Declaration
    public abstract MemberTypes MemberType { get; }
    Property Value
    Type Description
    MemberTypes

    A MemberTypes value indicating the type of member.

    Name

    Gets the name of the current member.

    Declaration
    public abstract string Name { get; }
    Property Value
    Type Description
    string

    A String containing the name of this member.

    Methods

    GetCustomAttributes(bool)

    When overridden in a derived class, returns an array of all custom attributes applied to this member.

    Declaration
    public abstract object[] GetCustomAttributes(bool inherit)
    Parameters
    Type Name Description
    bool inherit

    true to search this member's inheritance chain to find the attributes; otherwise, false. This parameter is ignored for properties and events.

    Returns
    Type Description
    object[]

    An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX