AttributeTargets.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. ////////////////////////////////////////////////////////////////////////////////
  5. ////////////////////////////////////////////////////////////////////////////////
  6. namespace System
  7. {
  8. // Enum used to indicate all the elements of the
  9. // VOS it is valid to attach this element to.
  10. [Flags]
  11. public enum AttributeTargets
  12. {
  13. Assembly = 0x0001,
  14. Module = 0x0002,
  15. Class = 0x0004,
  16. Struct = 0x0008,
  17. Enum = 0x0010,
  18. Constructor = 0x0020,
  19. Method = 0x0040,
  20. Property = 0x0080,
  21. Field = 0x0100,
  22. Event = 0x0200,
  23. Interface = 0x0400,
  24. Parameter = 0x0800,
  25. Delegate = 0x1000,
  26. ReturnValue = 0x2000,
  27. GenericParameter = 0x4000,
  28. All = Assembly | Module | Class | Struct | Enum | Constructor |
  29. Method | Property | Field | Event | Interface | Parameter |
  30. Delegate | ReturnValue | GenericParameter
  31. }
  32. }