I'm playing with adding Gtk# GUI to a Windows.Forms application. I need a way to isolate Mono-specific code in Program.cs since I'd like to avoid creation of a separate .sln/.csproj. In C/C++/Objective-C projects, I'd do something similar to #ifdef __APPLE__ or #ifdef _WIN32.
C# appears to have the #if command.
What is the typical way to isolate Mono-specific code, or Visual Studio-specific code?