public static Version Parse(string input) { if (input == null) { throw new ArgumentNullException("input"); } Contract.EndContractBlock(); VersionResult r = new VersionResult(); r.Init("input", true); if (!TryParseVersion(input, ref r)) { throw r.GetVersionParseException(); } return(r.m_parsedVersion); }
public static VersionEx Parse(string input) { if (input == null) { throw new ArgumentNullException("input"); } VersionResult result = default(VersionResult); result.Init("input", canThrow: true); if (!TryParseVersion(input, ref result)) { throw result.GetVersionParseException(); } return(result.m_parsedVersion); }