/// <summary> /// Initializes a new instance of the <see cref="DsvSettings"/> class. /// </summary> /// <param name="reader_FirstRowIsHeader">Informs the reader that the first row is a header row.</param> /// <param name="reader_ParseHeaderRowAsColumns">Informs the reader to parse the first row into a <see cref="DsvColumnCollection"/> of <see cref="DsvColumn"/>s.</param> /// <param name="reader_TrimWhitespace">Informs the reader to leave or remove any whitespace after reading the data. <b>True</b> will remove the whitespace; <b>false</b> will leave it.</param> /// <param name="writer_IncludeHeaderRow">Informs the writer to include the header row when writing the limited separated values.</param> /// <param name="writer_ColumnEnclosingRule">Informs the writer have to enclose data when writing delimited separated values. See <see cref="ColumnEnclosingRuleEnum"/>.</param> public DsvSettings(bool reader_FirstRowIsHeader, bool reader_ParseHeaderRowAsColumns, bool reader_TrimWhitespace, bool writer_IncludeHeaderRow, ColumnEnclosingRuleEnum writer_ColumnEnclosingRule) : this() { Reader_FirstRowIsHeader = reader_FirstRowIsHeader; Reader_ParseHeaderRowAsColumns = reader_ParseHeaderRowAsColumns; Reader_TrimWhitespace = reader_TrimWhitespace; Writer_IncludeHeaderRow = writer_IncludeHeaderRow; Writer_ColumnEnclosingRule = writer_ColumnEnclosingRule; }
/// <summary> /// Initializes a new instance of the <see cref="DsvSettings"/> class. /// </summary> /// <param name="rowSeperator">The string which separates the rows.</param> /// <param name="columnSeperator">The string which separates the columns.</param> /// <param name="enclosure">The string which encloses the columns.</param> /// <param name="reader_FirstRowIsHeader">Informs the reader that the first row is a header row.</param> /// <param name="reader_ParseHeaderRowAsColumns">Informs the reader to parse the first row into a <see cref="DsvColumnCollection"/> of <see cref="DsvColumn"/>s.</param> /// <param name="reader_TrimWhitespace">Informs the reader to leave or remove any whitespace after reading the data. <b>True</b> will remove the whitespace; <b>false</b> will leave it.</param> /// <param name="writer_IncludeHeaderRow">Informs the writer to include the header row when writing the limited separated values.</param> /// <param name="writer_ColumnEnclosingRule">Informs the writer have to enclose data when writing delimited separated values. See <see cref="ColumnEnclosingRuleEnum"/>.</param> public DsvSettings(string rowSeperator, string columnSeperator, string enclosure, bool reader_FirstRowIsHeader, bool reader_ParseHeaderRowAsColumns, bool reader_TrimWhitespace, bool writer_IncludeHeaderRow, ColumnEnclosingRuleEnum writer_ColumnEnclosingRule) : this() { RowSeperator = rowSeperator; ColumnSeperator = columnSeperator; Enclosure = enclosure; Reader_FirstRowIsHeader = reader_FirstRowIsHeader; Reader_ParseHeaderRowAsColumns = reader_ParseHeaderRowAsColumns; Reader_TrimWhitespace = reader_TrimWhitespace; Writer_IncludeHeaderRow = writer_IncludeHeaderRow; Writer_ColumnEnclosingRule = writer_ColumnEnclosingRule; }