Amazon.KinesisTap.AutoUpdate/UpdateUtility.cs
/// <summary>
/// Parse version string, such as 1.0.0.86 into a data structure
/// </summary>
/// <param name="versionString">Version string</param>
/// <returns>Version data structure</returns>
Parse version string, such as 1.0.0.86 into a data structure
Parse version string such as 1 . 0 . 0 . 86 into a data structure
public static Version ParseVersion(string versionString)
        {
            if (Version.TryParse(versionString, out Version version))
            {
                return version;
            }
            else
            {
                throw new ArgumentException($"{versionString} is not a valid version string.");
            }
        }
public static Version ParseVersion ( string versionString ) { if ( Version . TryParse ( versionString , out Version version ) ) { return version ; } else { throw new ArgumentException ( $" { versionString }  is not a valid version string. " ) ; } }
Parse version string, such as 1.0.0.86 into a data structure
Parse version string such as 1 . 0 . 0 . 86 into a data structure
Version data structure
Version data structure
versionString
string
None