2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.EnterpriseServices / System.EnterpriseServices / ConstructionEnabledAttribute.cs
index 38a4345756cbfc492e914e7841e0b38042c34fee..e324a1cccd64c79b9936feaaa052841a1b45ca63 100644 (file)
@@ -6,17 +6,40 @@
 //\r
 // Copyright (C) Tim Coleman, 2002\r
 //\r
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
 \r
 using System;\r
+using System.Runtime.InteropServices;\r
 \r
 namespace System.EnterpriseServices {\r
        [AttributeUsage (AttributeTargets.Class)]\r
+       [ComVisible(false)]\r
        public sealed class ConstructionEnabledAttribute : Attribute {\r
 \r
                #region Fields\r
 \r
                string def;\r
-               bool val;\r
+               bool enabled;\r
 \r
                #endregion // Fields\r
 \r
@@ -25,13 +48,13 @@ namespace System.EnterpriseServices {
                public ConstructionEnabledAttribute ()\r
                {\r
                        def = String.Empty;\r
-                       this.val = false;\r
+                       enabled = true;\r
                }\r
 \r
                public ConstructionEnabledAttribute (bool val)\r
                {\r
                        def = String.Empty;\r
-                       this.val = val;\r
+                       enabled = val;\r
                }\r
 \r
                #endregion // Constructors\r
@@ -43,9 +66,9 @@ namespace System.EnterpriseServices {
                        set { def = value; }\r
                }\r
 \r
-               public bool Value {\r
-                       get { return val; }\r
-                       set { val = value; }\r
+               public bool Enabled {\r
+                       get { return enabled; }\r
+                       set { enabled = value; }\r
                }\r
 \r
                #endregion // Properties\r