Header menu logo F# Compiler Guide

ILTypeDef Type

Represents IL Type Definitions.

Constructors

Constructor Description

ILTypeDef(name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, securityDecls, customAttrs)

Full Usage: ILTypeDef(name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, securityDecls, customAttrs)

Parameters:
Returns: ILTypeDef

Functional creation of a value, immediate

name : string
attributes : TypeAttributes
layout : ILTypeDefLayout
implements : InterfaceImpl list
genericParams : ILGenericParameterDefs
extends : ILType option
methods : ILMethodDefs
nestedTypes : ILTypeDefs
fields : ILFieldDefs
methodImpls : ILMethodImplDefs
events : ILEventDefs
properties : ILPropertyDefs
securityDecls : ILSecurityDecls
customAttrs : ILAttributesStored
Returns: ILTypeDef

ILTypeDef(name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, additionalFlags, securityDecls, customAttrs)

Full Usage: ILTypeDef(name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, additionalFlags, securityDecls, customAttrs)

Parameters:
Returns: ILTypeDef

Functional creation of a value with lazy calculated data

name : string
attributes : TypeAttributes
layout : ILTypeDefLayout
implements : InterruptibleLazy<InterfaceImpl list>
genericParams : ILGenericParameterDefs
extends : InterruptibleLazy<ILType option>
methods : ILMethodDefs
nestedTypes : ILTypeDefs
fields : ILFieldDefs
methodImpls : ILMethodImplDefs
events : ILEventDefs
properties : ILPropertyDefs
additionalFlags : ILTypeDefAdditionalFlags
securityDecls : ILSecurityDecls
customAttrs : ILAttributesStored
Returns: ILTypeDef

Instance members

Instance member Description

this.Access

Full Usage: this.Access

Returns: ILTypeDefAccess

this.Attributes

Full Usage: this.Attributes

Returns: TypeAttributes
Returns: TypeAttributes

this.CanContainExtensionMethods

Full Usage: this.CanContainExtensionMethods

Returns: bool
Returns: bool

this.CustomAttrs

Full Usage: this.CustomAttrs

Returns: ILAttributes
Returns: ILAttributes

this.CustomAttrsStored

Full Usage: this.CustomAttrsStored

Returns: ILAttributesStored

this.Encoding

Full Usage: this.Encoding

Returns: ILDefaultPInvokeEncoding

this.Events

Full Usage: this.Events

Returns: ILEventDefs
Returns: ILEventDefs

this.Extends

Full Usage: this.Extends

Returns: InterruptibleLazy<ILType option>
Returns: InterruptibleLazy<ILType option>

this.Fields

Full Usage: this.Fields

Returns: ILFieldDefs
Returns: ILFieldDefs

this.GenericParams

Full Usage: this.GenericParams

Returns: ILGenericParameterDefs

this.HasSecurity

Full Usage: this.HasSecurity

Returns: bool

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

Returns: bool

this.Implements

Full Usage: this.Implements

Returns: InterruptibleLazy<InterfaceImpl list>

this.IsAbstract

Full Usage: this.IsAbstract

Returns: bool
Returns: bool

this.IsClass

Full Usage: this.IsClass

Returns: bool
Returns: bool

this.IsComInterop

Full Usage: this.IsComInterop

Returns: bool

Class or interface generated for COM interop.

Returns: bool

this.IsDelegate

Full Usage: this.IsDelegate

Returns: bool
Returns: bool

this.IsEnum

Full Usage: this.IsEnum

Returns: bool
Returns: bool

this.IsInterface

Full Usage: this.IsInterface

Returns: bool
Returns: bool

this.IsKnownToBeAttribute

Full Usage: this.IsKnownToBeAttribute

Returns: bool
Returns: bool

this.IsSealed

Full Usage: this.IsSealed

Returns: bool
Returns: bool

this.IsSerializable

Full Usage: this.IsSerializable

Returns: bool
Returns: bool

this.IsSpecialName

Full Usage: this.IsSpecialName

Returns: bool
Returns: bool

this.IsStruct

Full Usage: this.IsStruct

Returns: bool
Returns: bool

this.IsStructOrEnum

Full Usage: this.IsStructOrEnum

Returns: bool
Returns: bool

this.Layout

Full Usage: this.Layout

Returns: ILTypeDefLayout

this.MetadataIndex

Full Usage: this.MetadataIndex

Returns: int32
Returns: int32

this.MethodImpls

Full Usage: this.MethodImpls

Returns: ILMethodImplDefs

this.Methods

Full Usage: this.Methods

Returns: ILMethodDefs
Returns: ILMethodDefs

this.Name

Full Usage: this.Name

Returns: string
Returns: string

this.NestedTypes

Full Usage: this.NestedTypes

Returns: ILTypeDefs
Returns: ILTypeDefs

this.Properties

Full Usage: this.Properties

Returns: ILPropertyDefs
Returns: ILPropertyDefs

this.SecurityDecls

Full Usage: this.SecurityDecls

Returns: ILSecurityDecls

this.With

Full Usage: this.With

Parameters:
Returns: ILTypeDef

Functional update

?name : string
?attributes : TypeAttributes
?layout : ILTypeDefLayout
?implements : InterruptibleLazy<InterfaceImpl list>
?genericParams : ILGenericParameterDefs
?extends : InterruptibleLazy<ILType option>
?methods : ILMethodDefs
?nestedTypes : ILTypeDefs
?fields : ILFieldDefs
?methodImpls : ILMethodImplDefs
?events : ILEventDefs
?properties : ILPropertyDefs
?newAdditionalFlags : ILTypeDefAdditionalFlags
?customAttrs : ILAttributesStored
?securityDecls : ILSecurityDecls
Returns: ILTypeDef

Type something to start searching.