Table of Contents

Enum TypeKind

Namespace
ICSharpCode.Decompiler.TypeSystem
Assembly
ICSharpCode.Decompiler.dll

.

public enum TypeKind : byte
Extension Methods

Fields

ArgList = 17
Array = 13

An array type

ByReference = 15

A managed reference type

Class = 1

A ITypeDefinition or ParameterizedType that is a class.

Delegate = 4

A ITypeDefinition or ParameterizedType that is a delegate.

Dynamic = 10

Type representing the C# 'dynamic' type.

Enum = 5

A ITypeDefinition that is an enum.

FunctionPointer = 23

C# 9 delegate*

Interface = 2

A ITypeDefinition or ParameterizedType that is an interface.

Intersection = 16

Intersection of several types

ModOpt = 19

Modified type, with optional modifier.

ModReq = 20

Modified type, with required modifier.

NInt = 21

C# 9 nint

NUInt = 22

C# 9 nuint

None = 9

The type of expressions without type (except for null literals, which have TypeKind.Null).

Null = 8

The type of the null literal.

Other = 0

Language-specific type that is not part of NRefactory.TypeSystem itself.

Pointer = 14

A pointer type

Struct = 3

A ITypeDefinition or ParameterizedType that is a struct.

Tuple = 18

A C# 7 tuple type. E.g.

(string, int)
Note:
System.ValueTuple<string, int>
is not considered a tuple type.
TypeParameter = 12

The type is a type parameter.

UnboundTypeArgument = 11

Represents missing type arguments in partially parameterized types.

Unknown = 7

Type used for invalid expressions and for types whose definition could not be found.

Void = 6

The System.Void type.