getting aspect related information reg

Posted by GowthamanSS on Stack Overflow See other posts from Stack Overflow or by GowthamanSS
Published on 2012-10-06T07:03:19Z Indexed on 2012/10/06 9:37 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET