Thursday, October 22, 2009
Had a quick look at this today, as I wanted to see if there was a better way than doing:

try
{
doSomething();
}
finally
{
Log.LogEvent("some log");
}
catch
{
Log.LogEvent("some error");
}

Came across a library called PostSharp, which I'm going to give a go on a new project.

It's had a decent write-up in the community, so hopefully this should keep the code nice and clean.

You can find a decent tutorial here.

Thursday, October 22, 2009 9:30:50 AM (GMT Standard Time, UTC+00:00) | Comments [0] | c##
Search
Archive
Links
Categories
Admin Login
Sign In
Blogroll