2using System.Text.RegularExpressions;
15 var match = Regex.Match(version,
@"(\d+)\.(\d+)([a-z]?)");
18 Major =
int.Parse(match.Groups[1].Value);
19 Minor =
int.Parse(match.Groups[2].Value);
21 Suffix =
string.IsNullOrWhiteSpace(match.Groups[3].Value) ?
"a" : match.Groups[3].Value;
34 return String.Compare(
Suffix, other.
Suffix, StringComparison.Ordinal);
static bool operator<=(WKVersion a, WKVersion b)
static bool operator>(WKVersion a, WKVersion b)
static bool operator>=(WKVersion a, WKVersion b)
static bool operator<(WKVersion a, WKVersion b)
WKVersion(string version)
int CompareTo(WKVersion other)