المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : overriding System.Diagnostics..::.DebuggerStepThroughAttribute



C# Programming
06-30-2009, 11:20 PM
I've got several xml data access classes. Each is implemented as two partial class files. One generated by the XSD tool (one of the SDK commandline apps), it applies the attribute to each class it generates, and does not appear to have an option to stop it from doing so. The second is code that I've written that provides add/delete/validation type functions, these I'd like to be able to debug normally.

Deleting the attribute out of the autogenerated code manually is a poor solution since it would just come back each time the file was regenerated due to a schema change. I suppose I could find a tool that does an automated search/replace and call it from the batch file I use to regenerate the source files, but that strikes me as being more cumbersome than changing the code I wrote.

It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies