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