getting aspect related information reg
- by GowthamanSS
Suppose i have these structure as
class ss
{
public void createfile()
{
StreamWriter sw= new StreamWriter("d:/test.txt");
}
}
i need to do aspect where ever i use StreamWriter?
as for as consideration i already used the below code as
[assembly: MyAspect(AttributeTargetAssembly="mscorlib", AttributeTargetTypes="System.IO.File", AttributeTargetMembers="Create"]
for file.create method ..
it works fine ..
Is there any way to solve this problem ...
waiting for your response