Re: Pre-processor macros?
C# does have some preprocessor directives (not 100% sure about VB.NET), nothing like C/C++ but they have them :)
Re: Pre-processor macros?
It's not even remotely close in terms of capability. I do use them for conditional compilation but that actually doesn't make programming any easier really, which is the sole point of prepro macros in the first place.
Re: Pre-processor macros?
Yea they are a lot less capable than those in C/C++, oh and it appears VB.NET has some of the directives also.
Also i am not to sure about this but it appears you can use the C++ preprocessor if you want to on your C# files?
Re: Pre-processor macros?
Not sure what you mean by that. A common practice is to get a C program to use its preprocessor to generate a C# code file so you save yourself a whole lot of legwork. That is fine as far as it goes. The best use of that is where you have a large list of constants that are shared between two platforms (say unix vs. windows) and they must correlate perfectly, such things are prone to human error so macros are a great help here.
Having to rely on a separate C/C++ processor during a C# build can get quite fiddly and hard to document, hence my inquiry about this.