2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.CompilerServices / MethodImplAttribute.cs
1 //
2 // System.Runtime.CompilerServices.cs
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System.Runtime.InteropServices;
11
12 namespace System.Runtime.CompilerServices {
13
14         [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, Inherited=false)] [Serializable]
15         public sealed class MethodImplAttribute : Attribute {
16                 MethodImplOptions impl_options;
17                 
18                 public MethodImplAttribute ()
19                 {
20                 }
21
22                 public MethodImplAttribute (short options)
23                 {
24                         impl_options = (MethodImplOptions) options;
25                 }
26
27                 public MethodImplAttribute (MethodImplOptions options)
28                 {
29                         impl_options = options;
30                 }
31
32                 public MethodCodeType MethodCodeType;
33
34                 public MethodImplOptions Value {
35                         get {
36                                 return impl_options;
37                         }
38                 }
39         }
40 }