BudgetAnalyser.Engine.Statement.CsvOnDiskStatementModelRepositoryV1.VersionCheck C# (CSharp) Method

VersionCheck() private static method

private static VersionCheck ( List allLines ) : bool
allLines List
return bool
        private static bool VersionCheck(List<string> allLines)
        {
            var firstLine = allLines[0];
            string[] split = firstLine.Split(',');
            if (split.Length != 5)
            {
                return false;
            }

            if (split[1] != VersionHash)
            {
                return false;
            }

            return true;
        }