Search Results for

    Show / Hide Table of Contents

    Class ClrMethodDefinition

    A Flame method that wraps an IL method definition.

    Inheritance
    object
    ClrMethodDefinition
    ClrAccessorDefinition
    Implements
    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Clr
    Assembly: Flame.Clr.dll
    Syntax
    public class ClrMethodDefinition : IBodyMethod, IMethod, ITypeMember, IGenericMember, IMember

    Constructors

    | Edit this page View Source

    ClrMethodDefinition(MethodDefinition, ClrTypeDefinition)

    Creates a wrapper around an IL method definition.

    Declaration
    public ClrMethodDefinition(MethodDefinition definition, ClrTypeDefinition parentType)
    Parameters
    Type Name Description
    MethodDefinition definition

    The definition to wrap in a Flame method.

    ClrTypeDefinition parentType

    The definition's declaring type.

    Properties

    | Edit this page View Source

    Attributes

    Gets the member's attributes.

    Declaration
    public AttributeMap Attributes { get; }
    Property Value
    Type Description
    AttributeMap
    | Edit this page View Source

    BaseMethods

    Gets the method's base methods.

    Declaration
    public IReadOnlyList<IMethod> BaseMethods { get; }
    Property Value
    Type Description
    IReadOnlyList<IMethod>
    | Edit this page View Source

    Body

    Gets the method body for this method.

    Declaration
    public MethodBody Body { get; }
    Property Value
    Type Description
    MethodBody

    A method body.

    | Edit this page View Source

    Definition

    Gets the IL method definition wrapped by this Flame method definition.

    Declaration
    public MethodDefinition Definition { get; }
    Property Value
    Type Description
    MethodDefinition

    An IL method definition.

    | Edit this page View Source

    FullName

    Gets the member's full name.

    Declaration
    public QualifiedName FullName { get; }
    Property Value
    Type Description
    QualifiedName
    | Edit this page View Source

    GenericParameters

    Gets the list of generic parameters for this generic member.

    Declaration
    public IReadOnlyList<IGenericParameter> GenericParameters { get; }
    Property Value
    Type Description
    IReadOnlyList<IGenericParameter>

    The generic parameters.

    | Edit this page View Source

    IsConstructor

    Indicates if this method is a constructor.

    Declaration
    public bool IsConstructor { get; }
    Property Value
    Type Description
    bool

    true if this method is a constructor; otherwise, false.

    | Edit this page View Source

    IsStatic

    Tells if this is a static method. Non-static methods take a non-null pointer to their parent type as an implicit first arguments. Static methods do not.

    Declaration
    public bool IsStatic { get; }
    Property Value
    Type Description
    bool

    true if this method is a static method; otherwise, false.

    | Edit this page View Source

    Name

    Gets the member's unqualified name.

    Declaration
    public UnqualifiedName Name { get; }
    Property Value
    Type Description
    UnqualifiedName
    | Edit this page View Source

    Parameters

    Gets the method's parameters.

    Declaration
    public IReadOnlyList<Parameter> Parameters { get; }
    Property Value
    Type Description
    IReadOnlyList<Parameter>
    | Edit this page View Source

    ParentType

    Gets the type that defines this method.

    Declaration
    public ClrTypeDefinition ParentType { get; }
    Property Value
    Type Description
    ClrTypeDefinition

    The type that defines this method.

    | Edit this page View Source

    ReturnParameter

    Gets the method's return parameter.

    Declaration
    public Parameter ReturnParameter { get; }
    Property Value
    Type Description
    Parameter

    Methods

    | Edit this page View Source

    ToString()

    Returns a string that represents the current ClrMethodDefinition.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current ClrMethodDefinition.

    Overrides
    object.ToString()

    Implements

    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember

    Extension Methods

    AccessModifierAttribute.GetAccessModifier(IMember)
    MemorySpecificationExtensions.GetMemorySpecification(IMethod)
    ExceptionSpecificationExtensions.GetExceptionSpecification(IMethod)
    TypeExtensions.GetGenericArguments(IMethod)
    TypeExtensions.GetRecursiveGenericArgumentMapping(IMethod)
    TypeExtensions.GetRecursiveGenericDeclaration(IMethod)
    TypeExtensions.MakeGenericMethod(IMethod, params IType[])
    TypeExtensions.MakeGenericMethod(IMethod, IReadOnlyList<IType>)
    FlagAttribute.IsAbstract(IMethod)
    FlagAttribute.IsInternalCall(IMethod)
    FlagAttribute.IsVirtual(IMethod)
    TypeExtensions.GetDefiningAssemblyOrNull(ITypeMember)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX