TsadriuUtilities.Csv
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TsadriuUtilities.Csv --version 1.0.0
NuGet\Install-Package TsadriuUtilities.Csv -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TsadriuUtilities.Csv" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TsadriuUtilities.Csv --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TsadriuUtilities.Csv, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TsadriuUtilities.Csv as a Cake Addin #addin nuget:?package=TsadriuUtilities.Csv&version=1.0.0 // Install TsadriuUtilities.Csv as a Cake Tool #tool nuget:?package=TsadriuUtilities.Csv&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
- 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.
- 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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 | 198 | 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 |
Initial release of the package.