mscorlib(4.0.0.0) API with additions
CLSCompliantAttribute.cs
2 
3 namespace System
4 {
7  [AttributeUsage(AttributeTargets.All, Inherited = true, AllowMultiple = false)]
8  [ComVisible(true)]
9  [__DynamicallyInvokable]
10  public sealed class CLSCompliantAttribute : Attribute
11  {
12  private bool m_compliant;
13 
17  [__DynamicallyInvokable]
18  public bool IsCompliant
19  {
20  [__DynamicallyInvokable]
21  get
22  {
23  return m_compliant;
24  }
25  }
26 
30  [__DynamicallyInvokable]
31  public CLSCompliantAttribute(bool isCompliant)
32  {
33  m_compliant = isCompliant;
34  }
35  }
36 }
Indicates whether a program element is compliant with the Common Language Specification (CLS)....
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Definition: __Canon.cs:3
CLSCompliantAttribute(bool isCompliant)
Initializes an instance of the T:System.CLSCompliantAttribute class with a Boolean value indicating w...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Specifies that the class can be serialized.
bool IsCompliant
Gets the Boolean value indicating whether the indicated program element is CLS-compliant.