1 // ==++==
2 //
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 //
5 // ==--==
6 using System;
7 
8 namespace System.Runtime.CompilerServices
9 {
10 [Serializable]
11 [AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface,
12                      AllowMultiple=true, Inherited=false)]
13 [System.Runtime.InteropServices.ComVisible(true)]
14     public sealed class RequiredAttributeAttribute : Attribute
15     {
16         private Type requiredContract;
17 
RequiredAttributeAttribute(Type requiredContract)18         public RequiredAttributeAttribute (Type requiredContract)
19         {
20             this.requiredContract= requiredContract;
21         }
22         public Type RequiredContract
23         {
24             get { return this.requiredContract; }
25         }
26     }
27 }
28