On 08-Feb-2004, Samuel Kaufman <[EMAIL PROTECTED]> wrote: > What would be the best way for an application to check if it's running > in Windows or another OS with Mono?
The best way is not to check for a specific OS, since code which checks for specific operating systems is inherently non-portable. Instead, it is better to check for the presence of the specific feature(s) that your code needs to worry about (e.g. for path name syntax use System.IO.Path.DirectorySeparatorChar, etc.) -- Fergus Henderson <[EMAIL PROTECTED]> | "I have always known that the pursuit The University of Melbourne | of excellence is a lethal habit" WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp. _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
