Show / Hide Table of Contents

    Class ClrMethodDefinition

    A Flame method that wraps an IL method definition.

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

    Constructors

    | Improve this Doc View Source

    ClrMethodDefinition(MethodDefinition, ClrTypeDefinition)

    Creates a wrapper around an IL method definition.

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

    The definition to wrap in a Flame method.

    ClrTypeDefinition parentType

    The definition's declaring type.

    Properties

    | Improve this Doc View Source

    Attributes

    Gets the member's attributes.

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

    BaseMethods

    Gets the method's base methods.

    Declaration
    public IReadOnlyList<IMethod> BaseMethods { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IMethod>
    | Improve this Doc View Source

    Body

    Gets the method body for this method.

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

    A method body.

    | Improve this Doc View Source

    Definition

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

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

    An IL method definition.

    | Improve this Doc View Source

    FullName

    Gets the member's full name.

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

    GenericParameters

    Gets the list of generic parameters for this generic member.

    Declaration
    public IReadOnlyList<IGenericParameter> GenericParameters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IGenericParameter>

    The generic parameters.

    | Improve this Doc View Source

    IsConstructor

    Indicates if this method is a constructor.

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

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

    | Improve this Doc 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
    System.Boolean

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

    | Improve this Doc View Source

    Name

    Gets the member's unqualified name.

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

    Parameters

    Gets the method's parameters.

    Declaration
    public IReadOnlyList<Parameter> Parameters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<Parameter>
    | Improve this Doc 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.

    | Improve this Doc View Source

    ReturnParameter

    Gets the method's return parameter.

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

    Methods

    | Improve this Doc View Source

    ToString()

    Returns a System.String that represents the current ClrMethodDefinition.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents the current ClrMethodDefinition.

    Overrides
    System.Object.ToString()

    Explicit Interface Implementations

    | Improve this Doc View Source

    ITypeMember.ParentType

    Gets the type that defines this member, if any.

    Declaration
    IType ITypeMember.ParentType { get; }
    Returns
    Type Description
    IType

    The parent type.

    Implements

    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember

    Extension Methods

    MemorySpecificationExtensions.GetMemorySpecification(IMethod)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX