[Mono-list] RE: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-10 Thread Jörg Rosenkranz
Hi Michi, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Michi Henning > > Another way to do this is to invert the test and avoid the > issue entirely: And the application is broken when an enum value Win64 is introduced. I think Miguels test

[Mono-list] Re: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-09 Thread Miguel de Icaza
Hello, > 2. Lots of existing code don't care about the framework version. In that > case it's easier to use code that will work on both versions, like: > > using System; > > class Program { > > static void Main () > { > int p = (int) Environment.OSVersion.Platform; >