Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TokenType.cs « metadata « Mono.PEToolkit « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd4b9a49e8fba108c77dca9ea8aa05b7f501deaf (plain)
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
/*
 * Copyright (c) 2002 Sergey Chaban <serge@wildwestsoftware.com>
 */

using System;

namespace Mono.PEToolkit.Metadata {

	/// <summary>
	/// TokenType enum.
	/// See mdt* constants in CorHdr.
	/// </summary>
	/// <remarks>
	/// See Metadata Unmanaged API, 9.1 Token Types
	/// </remarks>
	public enum TokenType : int {
		__shift = 24,
		__mask  = 0xFF << __shift,

		Module               = 0x00 << __shift,
		TypeRef              = 0x01 << __shift,
		TypeDef              = 0x02 << __shift,
		FieldDef             = 0x04 << __shift,
		MethodDef            = 0x06 << __shift,
		ParamDef             = 0x08 << __shift,
		InterfaceImpl        = 0x09 << __shift,
		MemberRef            = 0x0a << __shift,
		CustomAttribute      = 0x0c << __shift,
		Permission           = 0x0e << __shift,
		Signature            = 0x11 << __shift,
		Event                = 0x14 << __shift,
		Property             = 0x17 << __shift,
		ModuleRef            = 0x1a << __shift,
		TypeSpec             = 0x1b << __shift,
		Assembly             = 0x20 << __shift,
		AssemblyRef          = 0x23 << __shift,
		File                 = 0x26 << __shift,
		ExportedType         = 0x27 << __shift,
		ManifestResource     = 0x28 << __shift,

		String               = 0x70 << __shift,
		Name                 = 0x71 << __shift,
		BaseType             = 0x72 << __shift,
	}

}