FlatRedBall.Glue.ProjectManager.VersionIsOutdated C# (CSharp) Method

VersionIsOutdated() private static method

private static VersionIsOutdated ( string projectVersion, string webVersion ) : bool
projectVersion string
webVersion string
return bool
        private static bool VersionIsOutdated(string projectVersion, string webVersion)
        {
            string[] projectArray = projectVersion.Split(new char[1] { '.' });
            string[] webArray = webVersion.Split(new char[1] { '.' });

            int version1;
            int version2;

            for (int i = 0; i < projectArray.Length; ++i)
            {
                version1 = Int32.Parse(projectArray[i]);
                try
                {
                    version2 = Int32.Parse(webArray[i]);
                }
                catch
                {
                    version2 = 0;
                }

                if (version1 != version2)
                {
                    if (version1 < version2)
                        return true;
                    else
                        return false;
                }
            }
            if (webArray.Length > projectArray.Length)
                return true;
            else
                return false;
        }