[Mono-list] Determining the platform at compile and run time

Chris Seaton chris@chrisseaton.com
Wed, 29 Oct 2003 17:33:25 +0000


How do I know what OS my program is running on at run time? PlatformID
contains no entry for any systems apart from Windows.

How about compile time? Is there something I can test for with a #if?

Thanks.

-- 
Chris Seaton

chris@chrisseaton.com
http://www.chrisseaton.com/