[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]Why is Environment.OSVersion hardcoded to 5.1.2600.0?

From: Mark Easton
Subject: [DotGNU]Why is Environment.OSVersion hardcoded to 5.1.2600.0?
Date: Wed, 21 Apr 2004 11:39:21 +0100


I've been trying to understand why the System.Environment.OSVersion
property is hard coded to 5.1.2600.0 but need someone less naive than
myself to show me the light.

I know it used to be and that it now matches Mono's
implementation, but I don't fully understand why it has to be hard
coded.  The best I've been able to come up with is that because some
OSes like GNU/Linux don't have strict OS version numbers (where I guess
the closest thing to an OS version number if the kernel build), although
since Windows and MacOS do have strict version numbers I'm guessing the
value could be grabbed from an internal call at some point.  

Any clues would be much appreciated.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]