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:
authorJb Evain <jbevain@gmail.com>2010-10-22 19:24:23 +0400
committerJb Evain <jbevain@gmail.com>2010-10-22 19:24:23 +0400
commit43358fbfecf413b9eac05d68fe74e753a0037f4f (patch)
tree52ebae234bbba8fd9f2320c0e15533d6d0d34a44
parent367a2d4a7db66a78aaafbf7d778fe66d13f6d65d (diff)
Move MetadataType to Mono.Cecil
-rw-r--r--Mono.Cecil.Metadata/ElementType.cs34
-rw-r--r--Mono.Cecil/TypeReference.cs34
2 files changed, 34 insertions, 34 deletions
diff --git a/Mono.Cecil.Metadata/ElementType.cs b/Mono.Cecil.Metadata/ElementType.cs
index f3c482b..1ede042 100644
--- a/Mono.Cecil.Metadata/ElementType.cs
+++ b/Mono.Cecil.Metadata/ElementType.cs
@@ -28,40 +28,6 @@
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,
diff --git a/Mono.Cecil/TypeReference.cs b/Mono.Cecil/TypeReference.cs
index bbb6262..e45d823 100644
--- a/Mono.Cecil/TypeReference.cs
+++ b/Mono.Cecil/TypeReference.cs
@@ -33,6 +33,40 @@ using Mono.Collections.Generic;
namespace Mono.Cecil {
+ public enum MetadataType : byte {
+ Void = ElementType.Void,
+ Boolean = ElementType.Boolean,
+ Char = ElementType.Char,
+ SByte = ElementType.I1,
+ Byte = ElementType.U1,
+ Int16 = ElementType.I2,
+ UInt16 = ElementType.U2,
+ Int32 = ElementType.I4,
+ UInt32 = ElementType.U4,
+ Int64 = ElementType.I8,
+ UInt64 = ElementType.U8,
+ Single = ElementType.R4,
+ Double = ElementType.R8,
+ String = ElementType.String,
+ Pointer = ElementType.Ptr,
+ ByReference = ElementType.ByRef,
+ ValueType = ElementType.ValueType,
+ Class = ElementType.Class,
+ Var = ElementType.Var,
+ Array = ElementType.Array,
+ GenericInstance = ElementType.GenericInst,
+ TypedByReference = ElementType.TypedByRef,
+ IntPtr = ElementType.I,
+ UIntPtr = ElementType.U,
+ FunctionPointer = ElementType.FnPtr,
+ Object = ElementType.Object,
+ MVar = ElementType.MVar,
+ RequiredModifier = ElementType.CModReqD,
+ OptionalModifier = ElementType.CModOpt,
+ Sentinel = ElementType.Sentinel,
+ Pinned = ElementType.Pinned,
+ }
+
public class TypeReference : MemberReference, IGenericParameterProvider, IGenericContext {
string @namespace;