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
<PackageReference Include="SuperConvert.Abstraction" Version="1.0.0.1" />
<PackageVersion Include="SuperConvert.Abstraction" Version="1.0.0.1" />
<PackageReference Include="SuperConvert.Abstraction" />
paket add SuperConvert.Abstraction --version 1.0.0.1
#r "nuget: SuperConvert.Abstraction, 1.0.0.1"
#:package SuperConvert.Abstraction@1.0.0.1
#addin nuget:?package=SuperConvert.Abstraction&version=1.0.0.1
#tool nuget:?package=SuperConvert.Abstraction&version=1.0.0.1
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:
Install the NuGet package:
Install-Package SuperConvert.Abstraction -Version 1.0.0.1
Register the
ISuperConvertExcelService
in the DI container using theUseSuperConvertExcelService
extension method:
services.UseSuperConvertExcelService();
- 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 | Versions 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. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- SuperConvert (>= 1.0.4.9)
-
net5.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- SuperConvert (>= 1.0.4.9)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- SuperConvert (>= 1.0.4.9)
-
net7.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- SuperConvert (>= 1.0.4.9)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- SuperConvert (>= 1.0.4.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.