mscorlib(4.0.0.0) API with additions
ConditionalAttribute.cs
2 
3 namespace System.Diagnostics
4 {
7  [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
8  [ComVisible(true)]
9  [__DynamicallyInvokable]
10  public sealed class ConditionalAttribute : Attribute
11  {
12  private string m_conditionString;
13 
16  [__DynamicallyInvokable]
17  public string ConditionString
18  {
19  [__DynamicallyInvokable]
20  get
21  {
22  return m_conditionString;
23  }
24  }
25 
28  [__DynamicallyInvokable]
29  public ConditionalAttribute(string conditionString)
30  {
31  m_conditionString = conditionString;
32  }
33  }
34 }
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Definition: __Canon.cs:3
ConditionalAttribute(string conditionString)
Initializes a new instance of the T:System.Diagnostics.ConditionalAttribute class.
string ConditionString
Gets the conditional compilation symbol that is associated with the T:System.Diagnostics....
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
Specifies that the class can be serialized.
Indicates to compilers that a method call or attribute should be ignored unless a specified condition...