public string PlatformVersion { get; }Public ReadOnly Property PlatformVersion As String
Getpublic:
virtual property String^ PlatformVersion {
String^ get () sealed;
}If your application tries to convert 5.5 into a Double value when running on a PC localised to France, you will get an exception because the French decimal separator is comma and 5.5 is not a valid representation of a decimal number in that locale.
If you still wish to turn the Platform Version into a Double value, you can use an approach such as this:
If Double.Parse(Util.PlatformVersion, CultureInfo.InvariantCulture) < 5.5 Then...If you just wish to test whether the platform is greater than a particular level, you can use the IsMinimumRequiredVersion method.