MethodImplAttribute.cs 734 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // System.Runtime.CompilerServices.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Runtime.InteropServices;
  10. namespace System.Runtime.CompilerServices {
  11. [AttributeUsage(AttributeTargets.Method, Inherited=false)]
  12. public class MethodImplAttribute : Attribute {
  13. MethodImplOptions impl_options;
  14. public MethodImplAttribute ()
  15. {
  16. }
  17. public MethodImplAttribute (short options)
  18. {
  19. impl_options = (MethodImplOptions) options;
  20. }
  21. public MethodImplAttribute (MethodImplOptions options)
  22. {
  23. impl_options = options;
  24. }
  25. public MethodCodeType MethodCodeType;
  26. public MethodImplOptions Value {
  27. get {
  28. return impl_options;
  29. }
  30. }
  31. }
  32. }