これらの構造を次のように持っているとします
class ss
{
public void createfile()
{
StreamWriter sw= new StreamWriter("d:/test.txt");
}
}
StreamWriterを使用する場所でアスペクトを実行する必要がありますか?
考慮事項として、私はすでに以下のコードを
[assembly: MyAspect(AttributeTargetAssembly="mscorlib", AttributeTargetTypes="System.IO.File", AttributeTargetMembers="Create"]
for file.create method ..
それは正常に動作します..
この問題を解決する方法はありますか...
反応を待っています