更新 : 2007 年 11 月
エラー メッセージ
抽象であるため属性クラス 'class' を適用でません。
abstract カスタム属性クラスは、属性として使用できません。
次の例では CS0653 エラーが生成されます。
// CS0653.cs
using System;
public abstract class MyAttribute : Attribute
{
}
public class My2Attribute : MyAttribute
{
}
[My] // CS0653
// try the following line instead
// [My2]
class MyClass
{
public static void Main()
{
}
}