Hi,
Well, It doesn't matter, What you call? MACRO, preprocessor or
*pre-processor directive* Or act like preprocessor. In the end it does the
same job as the C++ pre-processor does.
So my question is, How can I get the C# code after compiler has done
processing this "pre-processor"?
As the C++ compiler has the facility to obtain the C++ code after compiler
has done pre-processing.
Thank You,
Avin Patel
"Jon Skeet [C# MVP]" wrote:
Avin Patel <Av*******@discussions.microsoft.com> wrote: I have written C# code. And I have used preprocessor / macro in it.
I want to get the C# code after processing preprocessor, I have defined
durcng compile time. How can I get this code?
Is there any csc compiler option, that can produce the code after processing
the macros/preprocessors?
No - C# doesn't *have* macros or a preprocessor. It has "pre-processing
directives" which are named that way because they look similar to C/C++
ones, but there's no actual pre-processor.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too