Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AttributeTargetTypes を使用してみましたが、うまくいきません。私は何が欠けていますか?
クラスのすべてのメソッドにアスペクトを適用する最も簡単な方法は、このクラスにアスペクト カスタム属性で注釈を付けることです。AttributeTargetTypes は、カスタム属性がアセンブリ レベルで適用される場合、少なくとも型が現在のアセンブリの一部である場合にも機能するはずです。