Applying aspect on constructor in c# using PostSharp
I am working on various concepts in PostSharp. Updated: This is my program class as namespace myconstructor { class Program { static void Main(string[] args) { createfolder(); streamfolder(); } public static void createfolder() { File.Create("E:/samplefile.txt"); } public static void streamfolder() { StreamWriter sw = new StreamWriter("E:/samplestream.txt"); } } } and my aspect class as 1)some tracing aspect class : using System; using System.Collections.Generic; using System.Linq; using System.Text; using PostSharp.Extensibility; using PostSharp.Aspects.Dependencies; using PostSharp.Aspects;