Reduce Your .NET Line Count- PostSharp
PostSharp uses custom attributes. You define attributes in code, for example
[Log("MyFuncton")]
bool ALogMethod() {
// body
}
When you implement this as a class, add references to it using PostSharp and implement new functionality that is called at runtime. This is medium to advanced stuff, not for the beginner but certainly worth the time investment. PostSharp is GPL licensed and you'll also find it linked on the page below. Summarizing it here is a bit short so I'll come back to using PostSharp in a longer article.
- Link to C# Code Library


No comments yet. Leave a Comment