Method Parse
Parse(string)
Parses a string which contains a version number of the form X.Y.Z somewhere in the string.
If multiple such substrings exists, the first is used. The parser stops when either
3 components have been identified, or when fewer than 3 components have been identified
and the next character is not a period (".") or a digit (0-9). If version
is null
or the empty string, this method returns the version 0.0.0
Declaration
public static OSVersion Parse(string version)
Parameters
Type | Name | Description |
---|---|---|
string | version | The string to parse. |
Returns
Type | Description |
---|---|
OSVersion | A new |