RequiredAttributeAttribute.cs 569 B

12345678910111213141516171819202122232425
  1. //
  2. // System.Runtime.CompilerServices.RequiredAttributeAttribute.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Copyright, Ximian Inc.
  7. using System;
  8. namespace System.Runtime.CompilerServices {
  9. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
  10. AttributeTargets.Enum | AttributeTargets.Interface)]
  11. [Serializable]
  12. public sealed class RequiredAttributeAttribute : Attribute
  13. {
  14. public RequiredAttributeAttribute (Type requiredContract)
  15. {
  16. }
  17. public Type RequiredContract {
  18. get { throw new NotSupportedException (); }
  19. }
  20. }
  21. }