From: kgcode on
In Mono 1.x, the Platform property of OperatingSystem contained 128, because there was no PlatformID.Unix. In Mono 2.x, the PlatformID.Unix was added (with an enumeration value of 4). So, if the code needs to run in both 1.x and 2.x Mono environments, the code should check for both values: 128 (for the 1.x environment) and 4 (Platform.Unix in the 2.x environment). Since you're also looking for OSX, check for PlatformID.MacOSX as well.

Note that it's also possible to see PlatformID.Unix when running on MacOSX.

From http://www.developmentnow.com/g/36_2003_12_0_0_203951/Detecting-OS-mono-NET.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/