Last commit for trunk/managed/MonoCecil/Mono.Cecil/SentinelType.cs: 0b45a105e5eff237a93c620b4fadc268b152664d

move cecil to trunk/managed/ add coment that 9.3.0 uses dlls from mono-addins and not that

UbitUmarov [2024-04-20 17:43:19]
move cecil to trunk/managed/ add coment that 9.3.0 uses dlls from mono-addins and not that
  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.  
  11. using System;
  12.  
  13. using MD = Mono.Cecil.Metadata;
  14.  
  15. namespace Mono.Cecil {
  16.  
  17. public sealed class SentinelType : TypeSpecification {
  18.  
  19. public override bool IsValueType {
  20. get { return false; }
  21. set { throw new InvalidOperationException (); }
  22. }
  23.  
  24. public override bool IsSentinel {
  25. get { return true; }
  26. }
  27.  
  28. public SentinelType (TypeReference type)
  29. : base (type)
  30. {
  31. Mixin.CheckType (type);
  32. this.etype = MD.ElementType.Sentinel;
  33. }
  34. }
  35. }