Attribute and ConditionalAttribute

ConditionalAttribute が class に対して適用できるようになりました。
とはいっても、そのクラスが特定コンディションに依存して存在変化するわけではなく、Attribute の派生クラスに対して設定することで、その属性の付与を制御できます。

[Conditinal("NUNIT")]
public class MyTestAttribute : Attribute {}

[MyTest]
public class Xxx {}

とすると、NUNIT が定義された場合のみ Xxx クラスに対して MyTestAttribute が付与されます。