2004-02-17 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / AssemblyFlagsAttribute.cs
1 //
2 // System.Reflection.AssemblyFlagsAttribute.cs
3 //
4 // Author: Duncan Mak (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc. http://www.ximian.com
7 //
8
9 namespace System.Reflection
10 {
11         [AttributeUsage (AttributeTargets.Assembly)]
12         public sealed class AssemblyFlagsAttribute : Attribute
13         {
14                 // Field
15                 private uint flags;
16                 
17                 // Constructor
18                 [CLSCompliant (false)]
19                 public AssemblyFlagsAttribute (uint flags)
20                 {
21                         this.flags = flags;
22                 }
23
24 #if NET_1_1
25                 public AssemblyFlagsAttribute (int flags)
26                 {
27                         this.flags = (uint)flags;
28                 }
29 #endif
30
31                 // Property
32                 [CLSCompliant (false)]
33                 public uint Flags
34                 {
35                         get { return flags; }
36                 }
37
38 #if NET_1_1
39                 public int AssemblyFlags
40                 {
41                         get { return (int)flags; }
42                 }
43 #endif
44         }
45 }