2002-08-03 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.EnterpriseServices / System.EnterpriseServices / ConstructionEnabledAttribute.cs
1 // \r
2 // System.EnterpriseServices.ConstructionEnabledAttribute.cs\r
3 //\r
4 // Author:\r
5 //   Tim Coleman (tim@timcoleman.com)\r
6 //\r
7 // Copyright (C) Tim Coleman, 2002\r
8 //\r
9 \r
10 using System;\r
11 \r
12 namespace System.EnterpriseServices {\r
13         [AttributeUsage (AttributeTargets.Class)]\r
14         public sealed class ConstructionEnabledAttribute : Attribute {\r
15 \r
16                 #region Fields\r
17 \r
18                 string def;\r
19                 bool val;\r
20 \r
21                 #endregion // Fields\r
22 \r
23                 #region Constructors\r
24 \r
25                 public ConstructionEnabledAttribute ()\r
26                 {\r
27                         def = String.Empty;\r
28                         this.val = false;\r
29                 }\r
30 \r
31                 public ConstructionEnabledAttribute (bool val)\r
32                 {\r
33                         def = String.Empty;\r
34                         this.val = val;\r
35                 }\r
36 \r
37                 #endregion // Constructors\r
38 \r
39                 #region Properties\r
40 \r
41                 public string Default {\r
42                         get { return def; }\r
43                         set { def = value; }\r
44                 }\r
45 \r
46                 public bool Value {\r
47                         get { return val; }\r
48                         set { val = value; }\r
49                 }\r
50 \r
51                 #endregion // Properties\r
52         }\r
53 }\r