Predefined preprocessor for C#?

  • Thread starter Thread starter Marcel Ruff
  • Start date Start date
M

Marcel Ruff

Hi,

are there any predefined preprocessor settings during compilation
of C# code like

CF1
CF2
DOTNET1
DOTNET2
WINCE42

which i can use in C# as

#if CF2
... using callback function pointer
#elif CF1
Uuuh ooh (Windows messages?)
#elif DOTNET2
... using UnmanagedFunctionPointer
#elif DOTNET1
... whatever may work here
#endif

thanks
Marcel
 
Not for those. You can always define them yourself in the project properties
and then share the code files between the different project types.

Cheers
Daniel
 
Back
Top