SuperConvert.Abstraction 1.0.0.1

dotnet add package SuperConvert.Abstraction --version 1.0.0.1
                    
NuGet\Install-Package SuperConvert.Abstraction -Version 1.0.0.1
                    
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="SuperConvert.Abstraction" Version="1.0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SuperConvert.Abstraction" Version="1.0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SuperConvert.Abstraction" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SuperConvert.Abstraction --version 1.0.0.1
                    
#r "nuget: SuperConvert.Abstraction, 1.0.0.1"
                    
#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.
#:package SuperConvert.Abstraction@1.0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SuperConvert.Abstraction&version=1.0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SuperConvert.Abstraction&version=1.0.0.1
                    
Install as a Cake Tool

SuperConvert.Abstraction Documentation

Introduction

SuperConvert.Abstraction is a powerful library that provides data conversion functionalities for your .NET applications. With this library, you can easily convert between different data formats, such as JSON, CSV, and XLS, using a simple and intuitive API. The library also introduces a new Dependency Injection (DI) service to streamline the usage of its features.

Getting Started

To get started with SuperConvert.Abstraction, follow these steps:

  1. Install the NuGet package: Install-Package SuperConvert.Abstraction -Version 1.0.0.1

  2. Register the ISuperConvertExcelService in the DI container using the UseSuperConvertExcelService extension method:

services.UseSuperConvertExcelService();

  1. Inject the ISuperConvertExcelService into your classes where you need to perform data conversion operations.

ISuperConvertExcelService Interface

The ISuperConvertExcelService interface provides various methods for data conversion. Here are some of the methods available:

  • DataTableToCsv: Converts a DataTable to CSV format.
  • JsonToCsv: Converts JSON data to CSV format.
  • CsvToJson: Converts CSV data to JSON format.
  • CsvToDataTable: Converts CSV data to a DataTable.
  • JsonToXls: Converts JSON data to XLS format.
  • DataTableToXls: Converts a DataTable to XLS format.

Example Usage

public class MyService
{
	private readonly ISuperConvertExcelService _excelService;
	public MyService(ISuperConvertExcelService excelService)
	{
		_excelService = excelService;
	}
	public void ConvertDataTableToCsv(DataTable dataTable)
	{
		string csv = _excelService.DataTableToCsv(dataTable);
		// Use the CSV data as needed
	}
	public void ConvertJsonToXls(string jsonData)
	{
		string xlsPath = _excelService.JsonToXls(jsonData, "path", "filename");
		// Use the path of the XLS file as needed
	}
}

Next Version: SuperConvert.Abstraction

In the next version of SuperConvert, the SuperConvert.Abstraction library will be introduced to provide a more flexible and modular approach to data conversion. This library will build upon the ISuperConvertExcelService interface and offer additional features and extensibility options.

Stay tuned for more updates and enhancements coming in the next version!

Conclusion

SuperConvert.Abstraction is a versatile library that simplifies data conversion tasks and enhances your .NET applications. By leveraging the Dependency Injection service and the ISuperConvertExcelService interface, you can seamlessly integrate data conversion capabilities into your projects. Get started today and experience the benefits of effortless data conversion!

For more details, check out the SuperConvert.Abstraction GitHub repository.

Happy coding!

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 is compatible.  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 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
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
1.0.0.1 277 12/11/2023
1.0.0 191 8/22/2023