I am developing cross-platform application using C# in Mono. In one class, I have to include platform-specific code. So, the question is: does Mono have platform specific macros like #if __WINDOWS or something like that?
Asked
Active
Viewed 276 times
1
-
1similar question: http://stackoverflow.com/questions/329043/how-can-i-conditionally-compile-my-c-sharp-for-mono-vs-microsoft-net/329072#329072 but they are not macro's, just symbols. – Dennis_E Mar 24 '15 at 10:33
-
Thanks for the comment, but this question is about detecting runtime (Mono or .NET) rather than operating system itself – user306080 Mar 24 '15 at 10:55
-
1How about this [answer](http://stackoverflow.com/a/9129523/4021938) – Alex H Mar 24 '15 at 11:19
-
Could use this instead of macros – user306080 Mar 24 '15 at 11:26