TsadriuUtilities.Csv
1.1.0
See the version list below for details.
dotnet add package TsadriuUtilities.Csv --version 1.1.0
NuGet\Install-Package TsadriuUtilities.Csv -Version 1.1.0
<PackageReference Include="TsadriuUtilities.Csv" Version="1.1.0" />
paket add TsadriuUtilities.Csv --version 1.1.0
#r "nuget: TsadriuUtilities.Csv, 1.1.0"
// Install TsadriuUtilities.Csv as a Cake Addin #addin nuget:?package=TsadriuUtilities.Csv&version=1.1.0 // Install TsadriuUtilities.Csv as a Cake Tool #tool nuget:?package=TsadriuUtilities.Csv&version=1.1.0
TsadriuUtilities.Csv
A small package that parses an CSV.
TsadriuUtilities.Csv is a library that helps on dealing with CSV files, to make it easier and save a little bit of time.
> Features <
CsvTable:
→ To create a new instance, use ICsvTable table = new CsvTable(string[] csvLines, string delimiter = ";") + 5 overload;
- CultureInfo CultureInfo { get; set; }
- Gets or sets the culture of this table. Setting this property will apply the culture on all elements of the ColumnList.
- string Delimiter { get; set; }
- Gets or sets the delimiter used on the csv file.
- List<ICsvColumn> ColumnList { get; set; }
- Gets or sets the list of ICsvColumn of the current ICsvTable.
- AddColumn(string columnName, int index = -1):
- Adds a new column to the ColumnList.
- ICsvColumn GetColumn(string columnName, StringComparison comparison):
- Checks if the columnName exists in the ColumnList, returning the first instance found. If it doesn't exist, it return a new CsvColumn with the name UNDEFINED.
- MoveColumn(int oldIndex, int newIndex) + 1 overload:
- Moves the position of this column with another column.
- RemoveColumn(int[] columnIndex) + 1 overload:
- Removes a column from the ColumnList.
- List<string> ToList():
- Converts the ICsvTable into a List<string>.
CsvColumn:
→ To create a new instance, use ICsvColumn column = new CsvColumn();
- string Name { get; set; }
- Gets or sets the column name.
- CultureInfo CultureInfo { get; set; }
- Gets or sets the culture info.
- bool IsVisible { get; set; }
- Gets or sets the visibility of a Sheet.
- List<string> RowList { get; set; }
- Gets or sets the row list.
- NormalizeNumbers(CultureInfo? culture):
- Normalizes the numbers of the RowList by using the CultureInfo.
- ChangeDateFormat(string oldDateFormat, string newDateFormat):
- Parses the RowList with the oldDateFormat to a DateTime and converts it back to a string using the newDateFormat.
CsvHelper:
- ReadMultipleHeaderCsv(istring[] csvLines, string delimiter, int[] headerPosition) + 1 overload:
- Helps on reading a csv that has multiple headers.
- ToList(List<ICsvTable> tableList):
- Converts a List of ICsvTable into a csv.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- TsadriuUtilities (>= 1.12.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.7.3 | 522 | 6/15/2023 |
1.7.2 | 200 | 5/22/2023 |
1.7.1 | 246 | 4/17/2023 |
1.7.0 | 243 | 2/28/2023 |
1.6.1 | 412 | 2/21/2023 |
1.6.0 | 254 | 2/17/2023 |
1.5.4 | 238 | 2/14/2023 |
1.5.3 | 254 | 2/14/2023 |
1.5.2 | 250 | 2/14/2023 |
1.5.1 | 246 | 2/14/2023 |
1.5.0 | 259 | 2/14/2023 |
1.4.4 | 262 | 2/13/2023 |
1.4.3 | 265 | 2/13/2023 |
1.4.2 | 231 | 2/13/2023 |
1.4.1 | 241 | 2/13/2023 |
1.4.0 | 263 | 2/13/2023 |
1.3.0 | 283 | 2/10/2023 |
1.2.0 | 280 | 2/7/2023 |
1.1.1 | 323 | 1/25/2023 |
1.1.0 | 290 | 1/25/2023 |
1.0.0 | 284 | 1/24/2023 |
CsvTable():
- Fixed a bug that made the first column of the table have 1 more line compared to the other columns.
- Implemented method AddColumn().
- Implemented method RemoveColumn().