Is it any best practice to tag .net generated code?
What I want to achieve is following:
- Debugger step by default not inside the property or method
- Metrics are not calulated for those classes/members
Is it any best practice to tag .net generated code?
What I want to achieve is following:
Well, for the first - attributes ([DebuggerStepThrough]
being the most important for your question); some useful ones here:
[DebuggerStepThrough, DebuggerHidden, DebuggerNonUserCode]
[CompilerGenerated] // arguably untrue...
Not sure about the second question.
You might consider using Postsharp to manipulate the code once it is compiled.