2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / corlib / System.Runtime.CompilerServices / MethodImplAttribute.cs
index bd47201a5f6f71261b54f19d07e4c199e1c6ecb1..afb691b15ac9e2efbdfe6376f80a6979513e54e5 100644 (file)
@@ -37,6 +37,9 @@ namespace System.Runtime.CompilerServices {
        [AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, 
                        Inherited=false)] 
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public sealed class MethodImplAttribute : Attribute {
                MethodImplOptions _val;
                
@@ -44,21 +47,21 @@ namespace System.Runtime.CompilerServices {
                {
                }
 
-               public MethodImplAttribute (short options)
-               {\r
-                       _val = (MethodImplOptions) options;\r
+               public MethodImplAttribute (short value)
+               {
+                       _val = (MethodImplOptions) value;
                }
 
-               public MethodImplAttribute (MethodImplOptions options)
-               {\r
-                       _val = options;\r
+               public MethodImplAttribute (MethodImplOptions methodImplOptions)
+               {
+                       _val = methodImplOptions;
                }
 
                public MethodCodeType MethodCodeType;
 
                public MethodImplOptions Value {
-                       get {\r
-                               return _val;\r
+                       get {
+                               return _val;
                        }
                }
        }