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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbevain <jbevain@gmail.com>2010-09-17 18:20:51 +0400
committerjbevain <jbevain@gmail.com>2010-09-17 18:20:51 +0400
commitce22862153cef813b9869b85053153e00b712faa (patch)
tree36a7966e7b6a38e8705cea534b031c9f4fbc1318 /Mono.Cecil.Metadata
parent4d9da9e9a007e6c45c63044ac546b2e3c0c09832 (diff)
Expose a convenience enum to switch on the metadata type
Diffstat (limited to 'Mono.Cecil.Metadata')
-rw-r--r--Mono.Cecil.Metadata/ElementType.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Mono.Cecil.Metadata/ElementType.cs b/Mono.Cecil.Metadata/ElementType.cs
index 1ede042..f3c482b 100644
--- a/Mono.Cecil.Metadata/ElementType.cs
+++ b/Mono.Cecil.Metadata/ElementType.cs
@@ -28,6 +28,40 @@
namespace Mono.Cecil.Metadata {
+ public enum MetadataType : byte {
+ Void = 0x01,
+ Boolean = 0x02,
+ Char = 0x03,
+ SByte = 0x04,
+ Byte = 0x05,
+ Int16 = 0x06,
+ UInt16 = 0x07,
+ Int32 = 0x08,
+ UInt32 = 0x09,
+ Int64 = 0x0a,
+ UInt64 = 0x0b,
+ Single = 0x0c,
+ Double = 0x0d,
+ String = 0x0e,
+ Pointer = 0x0f,
+ ByReference = 0x10,
+ ValueType = 0x11,
+ Class = 0x12,
+ Var = 0x13,
+ Array = 0x14,
+ GenericInstance = 0x15,
+ TypedByReference = 0x16,
+ IntPtr = 0x18,
+ UIntPtr = 0x19,
+ FunctionPointer = 0x1b,
+ Object = 0x1c,
+ MVar = 0x1e,
+ RequiredModifier = 0x1f,
+ OptionalModifier = 0x20,
+ Sentinel = 0x41,
+ Pinned = 0x45,
+ }
+
enum ElementType : byte {
None = 0x00,
Void = 0x01,