Add a DebuggerHidden attribute.
This attribute applies to Properties, Methods and Constructors. So you can do this:
Add a DebuggerStepThrough attribute.
This attribute applies to Methods, Constructors, Structs and Classes. You can use it on a single property but if you have a simple DO (Data Object) you can mark it so the debugger will step through it.
Of course you can also use the entire assembly in release mode.
Source Download: http://www.docdotnet.com/portal/LinkClick.aspx?link=TestSkipDebug.zip&tabid=129&mid=459
Have fun.
No comments:
Post a Comment