PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Mono.Cecil.Metadata/ElementType.cs

http://github.com/jbevain/cecil
C# | 55 lines | 42 code | 3 blank | 10 comment | 0 complexity | c760abbaaf101d66ed500efb4057560d MD5 | raw file
 1//
 2// Author:
 3//   Jb Evain (jbevain@gmail.com)
 4//
 5// Copyright (c) 2008 - 2015 Jb Evain
 6// Copyright (c) 2008 - 2011 Novell, Inc.
 7//
 8// Licensed under the MIT/X11 license.
 9//
10
11namespace Mono.Cecil.Metadata {
12
13	enum ElementType : byte {
14		None = 0x00,
15		Void = 0x01,
16		Boolean = 0x02,
17		Char = 0x03,
18		I1 = 0x04,
19		U1 = 0x05,
20		I2 = 0x06,
21		U2 = 0x07,
22		I4 = 0x08,
23		U4 = 0x09,
24		I8 = 0x0a,
25		U8 = 0x0b,
26		R4 = 0x0c,
27		R8 = 0x0d,
28		String = 0x0e,
29		Ptr = 0x0f,   // Followed by <type> token
30		ByRef = 0x10,   // Followed by <type> token
31		ValueType = 0x11,   // Followed by <type> token
32		Class = 0x12,   // Followed by <type> token
33		Var = 0x13,   // Followed by generic parameter number
34		Array = 0x14,   // <type> <rank> <boundsCount> <bound1>  <loCount> <lo1>
35		GenericInst = 0x15,   // <type> <type-arg-count> <type-1> ... <type-n> */
36		TypedByRef = 0x16,
37		I = 0x18,   // System.IntPtr
38		U = 0x19,   // System.UIntPtr
39		FnPtr = 0x1b,   // Followed by full method signature
40		Object = 0x1c,   // System.Object
41		SzArray = 0x1d,   // Single-dim array with 0 lower bound
42		MVar = 0x1e,   // Followed by generic parameter number
43		CModReqD = 0x1f,   // Required modifier : followed by a TypeDef or TypeRef token
44		CModOpt = 0x20,   // Optional modifier : followed by a TypeDef or TypeRef token
45		Internal = 0x21,   // Implemented within the CLI
46		Modifier = 0x40,   // Or'd with following element types
47		Sentinel = 0x41,   // Sentinel for varargs method signature
48		Pinned = 0x45,   // Denotes a local variable that points at a pinned object
49
50		// special undocumented constants
51		Type = 0x50,
52		Boxed = 0x51,
53		Enum = 0x55
54	}
55}