1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Internal.TypeSystem
{
[Flags]
public enum TypeFlags
{
CategoryMask = 0x3F,
// Primitive
Unknown = 0x00,
Void = 0x01,
Boolean = 0x02,
Char = 0x03,
SByte = 0x04,
Byte = 0x05,
Int16 = 0x06,
UInt16 = 0x07,
Int32 = 0x08,
UInt32 = 0x09,
Int64 = 0x0A,
UInt64 = 0x0B,
IntPtr = 0x0C,
UIntPtr = 0x0D,
Single = 0x0E,
Double = 0x0F,
ValueType = 0x10,
Enum = 0x11, // Parent is enum
Nullable = 0x12, // Nullable instantiation
// Unused 0x13
Class = 0x14,
Interface = 0x15,
// Unused 0x16
Array = 0x17,
SzArray = 0x18,
ByRef = 0x19,
Pointer = 0x1A,
FunctionPointer = 0x1B,
GenericParameter = 0x1C,
SignatureTypeVariable = 0x1D,
SignatureMethodVariable = 0x1E,
HasGenericVariance = 0x100,
HasGenericVarianceComputed = 0x200,
HasStaticConstructor = 0x400,
HasStaticConstructorComputed = 0x800,
HasFinalizerComputed = 0x1000,
HasFinalizer = 0x2000,
IsByRefLike = 0x4000,
IsByRefLikeComputed = 0x8000,
}
}
|