bcfa2754 9a6e fdc4 57f1 4e9a6d0441f1 - akesseler/Plexdata.CsvParser GitHub Wiki

CsvImporter(TInstance).IsHeaderLine Method

This method tries to determine whether given list of cells contain all and only header names.

Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea

Syntax

C#

private static bool IsHeaderLine(
	List<string> headers,
	List<ItemDescriptor> descriptors
)

Parameters

 

headers
Type: System.Collections.Generic.List(String)
The list of cells to be verified, which should contain header names.
descriptors
Type: System.Collections.Generic.List(ItemDescriptor)
The list of descriptors representing a single line.

Return Value

Type: Boolean
True is returned when all header names have occurred at least once, no matter at which position a header name has occurred. Otherwise, false is returned.

Remarks

The order of headers does not matter in this validation because of it only checks whether all the header names are included. Further, each name comparison is done by ignoring upper and lower cases.

See Also

Reference

CsvImporter(TInstance) Class
Plexdata.CsvParser.Processors Namespace

⚠️ **GitHub.com Fallback** ⚠️