I was hoping for a single line solution that I can paste in every single function in my solution. I have a macro that I can use to insert a line of code in every function already
An example would be as follows:
functionone(param1, param2)
{
logmyparams(); //inserted line
}
functiontwo(param1, param2, param3)
{
logmyparams(); //inserted line
}
Main Topics
Browse All Topics





by: jamesrhPosted on 2009-10-13 at 19:24:36ID: 25566778
is there any reason you can't just do:
public void functionOne(string username, mycustomobject mycustobj)
{
objectLogger(username);
objectLogger(mycustobj);
}