次のように定義された2つのカスタム属性があります。
internal class SchemaAttribute : Attribute {
internal SchemaAttribute(string schema) {
Schema = schema;
}
internal string Schema { get; private set; }
}
internal class AttributeAttribute : Attribute {
internal AttributeAttribute(string attribute) {
Attribute = attribute;
}
internal string Attribute { get; private set; }
}
SchemaAttributeをクラスに制限し、AttributeAttributeをプロパティに制限したいと思います。
これは実行可能ですか?