Header menu logo F# Compiler Guide

ILMethodDef Type

IL Method definitions.

Constructors

Constructor Description

ILMethodDef(name, attributes, implAttributes, callingConv, parameters, ret, body, isEntryPoint, genericParams, securityDecls, customAttrs)

Full Usage: ILMethodDef(name, attributes, implAttributes, callingConv, parameters, ret, body, isEntryPoint, genericParams, securityDecls, customAttrs)

Parameters:
Returns: ILMethodDef

Functional creation of a value, immediate

name : string
attributes : MethodAttributes
implAttributes : MethodImplAttributes
callingConv : ILCallingConv
parameters : ILParameters
ret : ILReturn
body : InterruptibleLazy<MethodBody>
isEntryPoint : bool
genericParams : ILGenericParameterDefs
securityDecls : ILSecurityDecls
customAttrs : ILAttributes
Returns: ILMethodDef

Instance members

Instance member Description

this.Access

Full Usage: this.Access

Returns: ILMemberAccess
Returns: ILMemberAccess

this.Attributes

Full Usage: this.Attributes

Returns: MethodAttributes

this.Body

Full Usage: this.Body

Returns: MethodBody
Returns: MethodBody

this.CallingConv

Full Usage: this.CallingConv

Returns: ILCallingConv
Returns: ILCallingConv

this.Code

Full Usage: this.Code

Returns: ILCode option
Returns: ILCode option

this.CustomAttrs

Full Usage: this.CustomAttrs

Returns: ILAttributes
Returns: ILAttributes

this.CustomAttrsStored

Full Usage: this.CustomAttrsStored

Returns: ILAttributesStored

this.GenericParams

Full Usage: this.GenericParams

Returns: ILGenericParameterDefs

this.GetCallingSignature

Full Usage: this.GetCallingSignature

Returns: ILCallingSignature

this.HasSecurity

Full Usage: this.HasSecurity

Returns: bool

Some methods are marked "HasSecurity" even if there are no permissions attached, e.g. if they use SuppressUnmanagedCodeSecurityAttribute

Returns: bool

this.ImplAttributes

Full Usage: this.ImplAttributes

Returns: MethodImplAttributes

this.IsAbstract

Full Usage: this.IsAbstract

Returns: bool
Returns: bool

this.IsAggressiveInline

Full Usage: this.IsAggressiveInline

Returns: bool
Returns: bool

this.IsCheckAccessOnOverride

Full Usage: this.IsCheckAccessOnOverride

Returns: bool
Returns: bool

this.IsClassInitializer

Full Usage: this.IsClassInitializer

Returns: bool

Indicates a .cctor method.

Returns: bool

this.IsConstructor

Full Usage: this.IsConstructor

Returns: bool

Indicates a .ctor method.

Returns: bool

this.IsEntryPoint

Full Usage: this.IsEntryPoint

Returns: bool
Returns: bool

this.IsFinal

Full Usage: this.IsFinal

Returns: bool
Returns: bool

this.IsForwardRef

Full Usage: this.IsForwardRef

Returns: bool
Returns: bool

this.IsHideBySig

Full Usage: this.IsHideBySig

Returns: bool
Returns: bool

this.IsIL

Full Usage: this.IsIL

Returns: bool
Returns: bool

this.IsInternalCall

Full Usage: this.IsInternalCall

Returns: bool
Returns: bool

this.IsManaged

Full Usage: this.IsManaged

Returns: bool
Returns: bool

this.IsMustRun

Full Usage: this.IsMustRun

Returns: bool

SafeHandle finalizer must be run.

Returns: bool

this.IsNewSlot

Full Usage: this.IsNewSlot

Returns: bool
Returns: bool

this.IsNoInline

Full Usage: this.IsNoInline

Returns: bool
Returns: bool

this.IsNonVirtualInstance

Full Usage: this.IsNonVirtualInstance

Returns: bool

Indicates this is an instance methods that is not virtual.

Returns: bool

this.IsPreserveSig

Full Usage: this.IsPreserveSig

Returns: bool
Returns: bool

this.IsReqSecObj

Full Usage: this.IsReqSecObj

Returns: bool
Returns: bool

this.IsSpecialName

Full Usage: this.IsSpecialName

Returns: bool
Returns: bool

this.IsStatic

Full Usage: this.IsStatic

Returns: bool

Indicates a static method.

Returns: bool

this.IsSynchronized

Full Usage: this.IsSynchronized

Returns: bool
Returns: bool

this.IsUnmanagedExport

Full Usage: this.IsUnmanagedExport

Returns: bool

The method is exported to unmanaged code using COM interop.

Returns: bool

this.IsVirtual

Full Usage: this.IsVirtual

Returns: bool

Indicates an instance methods that is virtual or abstract or implements an interface slot.

Returns: bool

this.IsZeroInit

Full Usage: this.IsZeroInit

Returns: bool
Returns: bool

this.Locals

Full Usage: this.Locals

Returns: ILLocals
Returns: ILLocals

this.MaxStack

Full Usage: this.MaxStack

Returns: int32
Returns: int32

this.MetadataIndex

Full Usage: this.MetadataIndex

Returns: int32
Returns: int32

this.MethodBody

Full Usage: this.MethodBody

Returns: ILMethodBody
Returns: ILMethodBody

this.Name

Full Usage: this.Name

Returns: string
Returns: string

this.ParameterTypes

Full Usage: this.ParameterTypes

Returns: ILTypes
Returns: ILTypes

this.Parameters

Full Usage: this.Parameters

Returns: ILParameters
Returns: ILParameters

this.Return

Full Usage: this.Return

Returns: ILReturn
Returns: ILReturn

this.SecurityDecls

Full Usage: this.SecurityDecls

Returns: ILSecurityDecls

Type something to start searching.