CLSCompliantAttribute.cs 871 B

123456789101112131415161718192021222324252627282930313233
  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. **
  7. **
  8. ** Purpose: Container for assemblies.
  9. **
  10. **
  11. =============================================================================*/
  12. namespace System
  13. {
  14. [AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
  15. public sealed class CLSCompliantAttribute : Attribute
  16. {
  17. private bool _compliant;
  18. public CLSCompliantAttribute(bool isCompliant)
  19. {
  20. _compliant = isCompliant;
  21. }
  22. public bool IsCompliant
  23. {
  24. get
  25. {
  26. return _compliant;
  27. }
  28. }
  29. }
  30. }