Octopus.Client.Model.Versioning.StrictSemanticVersion.Parse C# (CSharp) Method

Parse() public static method

Parses a SemVer string using strict SemVer rules.
public static Parse ( string value ) : StrictSemanticVersion
value string
return StrictSemanticVersion
        public static StrictSemanticVersion Parse(string value)
        {
            StrictSemanticVersion ver = null;
            if (!TryParse(value, out ver))
            {
                throw new ArgumentException($"'{value}' is not a valid version string", nameof(value));
            }

            return ver;
        }