AssemblyFlagsAttribute.cs 718 B

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