protected bool ValidateDatastructure(string line, char sep )
{
/// <summary>
/// the incoming line should be the datastructure line from a FileStream
/// this line converted into a list of strings which incluide the variable names
/// </summary>
/// <remarks></remarks>
VariableIdentifierRows.Add(rowToList(line, sep));
/// <summary>
/// Convert a list of variable names to
/// VariableIdentifiers
/// </summary>
/// <remarks>SubmitedVariableIdentifiers is the list</remarks>
convertAndAddToSubmitedVariableIdentifier();
/// <summary>
/// Validate datastructure with the SubmitedVariableIdentifiers from FileStream
/// </summary>
/// <remarks></remarks>
List<Error> ecList = ValidateComparisonWithDatatsructure(SubmitedVariableIdentifiers);
if (ecList != null)
{
if (ecList.Count > 0)
{
this.ErrorMessages = this.ErrorMessages.Concat(ecList).ToList();
return false;
}
else return true;
}
else return true;
}