ITypeReference

Overview

The ITypeReference type points to an external (defined in another assembly) or internal (defined in this assembly) type. This interface can be used to query information about it. The members defined on this type can be found through the IType.

Location


 

EnumUnderlyingType

Returns the sub type of an enum type, usually this is an Int32, though other integer types are supported, too

 

property EnumUnderlyingType: IType read;

 

IType EnumUnderlyingType { get; }

 

var EnumUnderlyingType: IType { get{} }

 

IType EnumUnderlyingType { __get; }

 

ReadOnly Property EnumUnderlyingType() As IType

GetClassConstructor

Returns the class constructor for this class, if any

 

method GetClassConstructor: IMethod

 

IMethod GetClassConstructor()

 

func GetClassConstructor() -> IMethod

 

IMethod GetClassConstructor()

 

Function GetClassConstructor() As IMethod

Nested

Returns true if this type is nested

 

property Nested: Boolean read;

 

Boolean Nested { get; }

 

var Nested: Boolean { get{} }

 

Boolean Nested { __get; }

 

ReadOnly Property Nested() As Boolean

NestedIn

Returns the class this type is nested in

 

property NestedIn: IType read;

 

IType NestedIn { get; }

 

var NestedIn: IType { get{} }

 

IType NestedIn { __get; }

 

ReadOnly Property NestedIn() As IType

Sealed

Returns true if this is a sealed class

 

property Sealed: Boolean read;

 

Boolean Sealed { get; }

 

var Sealed: Boolean { get{} }

 

Boolean Sealed { __get; }

 

ReadOnly Property Sealed() As Boolean

TypeKind

Returns the type kind of this type

 

property TypeKind: TypeDefKind read;

 

TypeDefKind TypeKind { get; }

 

var TypeKind: TypeDefKind { get{} }

 

TypeDefKind TypeKind { __get; }

 

ReadOnly Property TypeKind() As TypeDefKind

Visibility

Returns the member visibility of this type, for nested types this can be any of the values in the enum. For regular types only Private and Public are valid values

 

property Visibility: Visibility read;

 

Visibility Visibility { get; }

 

var Visibility: Visibility { get{} }

 

Visibility Visibility { __get; }

 

ReadOnly Property Visibility() As Visibility

 

EnumUnderlyingType

Returns the sub type of an enum type, usually this is an Int32, though other integer types are supported, too

 

property EnumUnderlyingType: IType read;

 

IType EnumUnderlyingType { get; }

 

var EnumUnderlyingType: IType { get{} }

 

IType EnumUnderlyingType { __get; }

 

ReadOnly Property EnumUnderlyingType() As IType

Nested

Returns true if this type is nested

 

property Nested: Boolean read;

 

Boolean Nested { get; }

 

var Nested: Boolean { get{} }

 

Boolean Nested { __get; }

 

ReadOnly Property Nested() As Boolean

NestedIn

Returns the class this type is nested in

 

property NestedIn: IType read;

 

IType NestedIn { get; }

 

var NestedIn: IType { get{} }

 

IType NestedIn { __get; }

 

ReadOnly Property NestedIn() As IType

Sealed

Returns true if this is a sealed class

 

property Sealed: Boolean read;

 

Boolean Sealed { get; }

 

var Sealed: Boolean { get{} }

 

Boolean Sealed { __get; }

 

ReadOnly Property Sealed() As Boolean

TypeKind

Returns the type kind of this type

 

property TypeKind: TypeDefKind read;

 

TypeDefKind TypeKind { get; }

 

var TypeKind: TypeDefKind { get{} }

 

TypeDefKind TypeKind { __get; }

 

ReadOnly Property TypeKind() As TypeDefKind

Visibility

Returns the member visibility of this type, for nested types this can be any of the values in the enum. For regular types only Private and Public are valid values

 

property Visibility: Visibility read;

 

Visibility Visibility { get; }

 

var Visibility: Visibility { get{} }

 

Visibility Visibility { __get; }

 

ReadOnly Property Visibility() As Visibility

 

GetClassConstructor

Returns the class constructor for this class, if any

 

method GetClassConstructor: IMethod

 

IMethod GetClassConstructor()

 

func GetClassConstructor() -> IMethod

 

IMethod GetClassConstructor()

 

Function GetClassConstructor() As IMethod