GoWorkPro.CsvBuilder 4.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GoWorkPro.CsvBuilder --version 4.2.0                
NuGet\Install-Package GoWorkPro.CsvBuilder -Version 4.2.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="GoWorkPro.CsvBuilder" Version="4.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GoWorkPro.CsvBuilder --version 4.2.0                
#r "nuget: GoWorkPro.CsvBuilder, 4.2.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 GoWorkPro.CsvBuilder as a Cake Addin
#addin nuget:?package=GoWorkPro.CsvBuilder&version=4.2.0

// Install GoWorkPro.CsvBuilder as a Cake Tool
#tool nuget:?package=GoWorkPro.CsvBuilder&version=4.2.0                

Very simple and Easy to use, convert Datatables to CSV or CSV to DataTables, Excel to CSV, Read CSV raw string, CSV file, Modification, Set Read Till Criterias, Build CSV Author: Samer Shahbaz

Create Date: 15/11/2023

Description: The CsvBuilder utility, developed by Samer Shahbaz, is a powerful tool designed to simplify the process of creating CSV (Comma-Separated Values) files using .NET DataTables or Customely. This utility provides a convenient and efficient way to generate/read CSV data.

Key Features: Simplicity: Designed for ease of use, providing a straightforward and user-friendly experience. Customizable Options: Offers flexibility with customizable processing options for CSV data. Excel Conversion: Seamlessly converts Excel files to CSV, enhancing data interoperability. Versatile Construction: Datasets methods and GetValue function accommodate diverse data structures for CSV construction.

Usage Examples:

Constructor: Static Method for Creating CsvBuilder with Multiple DataTables: CsvBuilder csvBuilder = CsvBuilder.Datasets(dataTable1, dataTable2, ...);

Building CSV: csvBuilder.Build(tableIndex1, tableIndex2, ...) Customizing Value Rendering:

Subscribe to the ValueRenderEvent to define custom parsing logic for column and row values.

Output Handling: Obtain the CSV content as a Stream: Stream csvStream = csvBuilder.GetStream(); Save the CSV content to a file:

csvBuilder.SaveAsFile("filePath.csv");

Example #1:

// Create CsvBuilder with a DataSet ICsvBuilder csvBuilder = CsvBuilder.Datasets(dataSet);

// Build CSV with selected columns from specific DataTables ICsvExtractor csvExtractor = csvBuilder.Build();

// Obtain CSV content as a Stream MemoryStream csvStream = csvExtractor.GetStream();

// Save CSV content to a file csvExtractor.SaveAsFile("output.csv");

//dispose if necessary csvBuilder.Dispose(); This utility simplifies the process of CSV generation, providing users with a flexible and efficient solution for working with tabular data in the .NET environment.

For More Information See https://goworkpro.github.io/CSV-Builder-Utility/

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.2.1 759 12/28/2023
4.2.0 657 12/28/2023
4.1.0 735 12/22/2023
4.0.2 677 12/20/2023
4.0.1 684 12/15/2023
4.0.0 724 12/14/2023
3.0.1 765 12/5/2023
3.0.0 776 12/1/2023
2.1.0 783 11/30/2023
2.0.0 765 11/28/2023
1.1.0 775 11/30/2023
1.0.2 731 11/27/2023
1.0.1 730 11/27/2023
1.0.0 754 11/27/2023

New Features:

ReadFile Method (WithOptions):

Introduces the ReadFile method, allowing users to read CSV data from a file with specified options for enhanced processing.
ReadFileTill Method:

Adds the ReadFileTill method, enabling users to read CSV data from a file until a specified criteria is met, providing dynamic extraction capabilities.
ToDataTables Method Enhancements:

Enhances the ToDataTables method to accept start and end criteria, facilitating more refined data extraction based on specified criteria.
Introduces an overload with an option to skip rows matching criteria values during DataTable creation.
SetValue and GetValue Methods:

Introduces SetValue and GetValue methods, enabling users to set and retrieve specific cell values in the CSV data with ease.
GetRowValues and SetRow Methods:

Adds GetRowValues and SetRow methods, providing functionalities to retrieve values from and set values for entire rows, enhancing row-level manipulation.
Optimizations:

Implements optimization measures for enhanced performance and efficiency across various methods.
Other Enhancements:

ToString Method Override:

Enhances the ToString method for improved human-readable string representation of the CSV extractor.
ReadExcelFileToCsv and ReadFromText Methods:

Continues to provide functionality for reading CSV data from Excel files and text strings, ensuring compatibility and ease of use.
Note: Please refer to the documentation for detailed information on the usage of new features and optimizations. Upgrade to this version for an improved and more versatile CSV processing experience.