/// <returns> =0:versions are equal</returns> /// <returns> >0:version1 is greater</returns> /// <returns> <0:version2 is greater</returns> public static int CompareVersion(string v1, string v2) { var version1 = SuffixVersion.Parse(v1); var version2 = SuffixVersion.Parse(v2); return(version1.CompareTo(version2)); }
private static bool IsVersionString(string str) { return(SuffixVersion.TryParse(str, out _)); }