Why to use LinesOfCodeAvoidedAttribute class?

Viewed 205

Reading the sample from PostSharp, I noticed something odd:

[LinesOfCodeAvoided(6)]
    public sealed class LogMethodAttribute : OnMethodBoundaryAspect
    {

According to the documentation, it says that LineOfCodeAvoided it's just a number specifying the quantity of lines of code avoided instead of writing those manually.

Is this attribute really necessary? Why exists?

I don't see any benefits and I suppose that "if I avoid to code N lines of code" that's something I know, no something I need to tell to my program, right?

1 Answers
Related