Esempio n. 1
0
        public static bool TryParse(string input, out Version result)
        {
            Version.VersionResult versionResult = default(Version.VersionResult);
            versionResult.Init("input", false);
            bool result2 = Version.TryParseVersion(input, ref versionResult);

            result = versionResult.m_parsedVersion;
            return(result2);
        }
Esempio n. 2
0
        public static bool TryParse(string input, out Version result)
        {
            Version.VersionResult result1 = new Version.VersionResult();
            result1.Init("input", false);
            int num = Version.TryParseVersion(input, ref result1) ? 1 : 0;

            result = result1.m_parsedVersion;
            return(num != 0);
        }
Esempio n. 3
0
 public static Version Parse(string input)
 {
     if (input == null)
     {
         throw new ArgumentNullException("input");
     }
     Version.VersionResult versionResult = default(Version.VersionResult);
     versionResult.Init("input", true);
     if (!Version.TryParseVersion(input, ref versionResult))
     {
         throw versionResult.GetVersionParseException();
     }
     return(versionResult.m_parsedVersion);
 }