BExIS.IO.Transform.Input.ExcelReader.ValidateDatastructure C# (CSharp) Method

ValidateDatastructure() protected method

Validate Datastructure from file true = valid false = not valid
protected ValidateDatastructure ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : bool
worksheetPart DocumentFormat.OpenXml.Packaging.WorksheetPart Part of a excel worksheet where the datastructure is located
startRow int Row where the DataStructure is starting
endRow int Row where the DataStructure is ending
return bool
        protected bool ValidateDatastructure(WorksheetPart worksheetPart, int startRow, int endRow)
        {
            List<Error> errorList;

            errorList = ValidateComparisonWithDatatsructure(GetSubmitedVariableIdentifier(worksheetPart, startRow, endRow));

            if (errorList != null)
            {
                if (errorList.Count > 0)
                {
                    this.ErrorMessages = this.ErrorMessages.Concat(errorList).ToList();
                    return false;
                }
            }

            return true;
        }