Show / Hide Table of Contents

    Interface IMethod

    Defines a common interface for methods.

    Inherited Members
    ITypeMember.ParentType
    IGenericMember.GenericParameters
    IMember.Name
    IMember.FullName
    IMember.Attributes
    Namespace: Flame
    Assembly: Flame.dll
    Syntax
    public interface IMethod : ITypeMember, IGenericMember, IMember

    Properties

    | Improve this Doc View Source

    BaseMethods

    Gets the method's base methods.

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

    IsConstructor

    Indicates if this method is a constructor.

    Declaration
    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
    bool IsStatic { get; }
    Property Value
    Type Description
    System.Boolean

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

    | Improve this Doc View Source

    Parameters

    Gets the method's parameters.

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

    ReturnParameter

    Gets the method's return parameter.

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

    Extension Methods

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