I used the xsd.exe tool to generate a class based on my xml schema. It created a public partial class with DebuggerStepThroughAttribute. Well, I created another partial class file for this class to write my custom code and want to be able to step-into this code I've written but it appears the debugger is applying the step-through attribute to my partial class as well. Is there an easy way for me to step-into my code without manually removing the attribute each time I re-generate the partial class?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
//
Best way is to simply remove the attribute lines from the generated code. The easiest way IMHO is using an alias on the command window.
example:
1) Open the command window (CTRL+A)
2) type: (VB version)
3) now you have an alias to find&replace those lines on the current document. You can simply type in the command window:
And the attribute lines are gone.
Note: The regular expression used in this example is for VB code, but it shouldn't be too hard to convert for C#.