Does VisualBasic.NET or C# support conditional compiling? And inline functions (macros)?
When I talk about conditional compiling, I mean something like C/C++, where you do:
#ifdef DEBUG
my_var = call_some_debug_function();
#else
my_var = call_some_final_function();
#endif
And in the resulting compiled code, there is only the call to the call_some_debug_function
or the call_some_final_function
.
When I talk about inline functions, I mean something like C/C++ macros:
#define sum(a, b) a + b
...
total = sum(a, b)
And the resulting compiled code is:
total = a + b
Are these constructions supported by any of these .NET languages?
See more on this question at Stackoverflow