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, isKnownToBeAttribute, securityDecls, customAttrs)

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

Parameters:
Returns: ILTypeDef

Functional creation of a value, immediate

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

Instance members

Instance member Description

this.Access

Full Usage: this.Access

Returns: ILTypeDefAccess
Returns: ILTypeDefAccess

this.Attributes

Full Usage: this.Attributes

Returns: TypeAttributes
Returns: TypeAttributes

this.CustomAttrs

Full Usage: this.CustomAttrs

Returns: ILAttributes
Returns: ILAttributes

this.Encoding

Full Usage: this.Encoding

Returns: ILDefaultPInvokeEncoding
Returns: ILDefaultPInvokeEncoding

this.Events

Full Usage: this.Events

Returns: ILEventDefs
Returns: ILEventDefs

this.Extends

Full Usage: this.Extends

Returns: ILType option
Returns: ILType option

this.Fields

Full Usage: this.Fields

Returns: ILFieldDefs
Returns: ILFieldDefs

this.GenericParams

Full Usage: this.GenericParams

Returns: ILGenericParameterDefs
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: ILTypes
Returns: ILTypes

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
Returns: ILTypeDefLayout

this.MethodImpls

Full Usage: this.MethodImpls

Returns: ILMethodImplDefs
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
Returns: ILSecurityDecls

this.With

Full Usage: this.With

Parameters:
Returns: ILTypeDef

Functional update

?name : string
?attributes : TypeAttributes
?layout : ILTypeDefLayout
?implements : ILTypes
?genericParams : ILGenericParameterDefs
?extends : ILType option
?methods : ILMethodDefs
?nestedTypes : ILTypeDefs
?fields : ILFieldDefs
?methodImpls : ILMethodImplDefs
?events : ILEventDefs
?properties : ILPropertyDefs
?isKnownToBeAttribute : bool
?customAttrs : ILAttributes
?securityDecls : ILSecurityDecls
Returns: ILTypeDef

Type something to start searching.