SuperConvert.Files
1.0.4
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
dotnet add package SuperConvert.Files --version 1.0.4
NuGet\Install-Package SuperConvert.Files -Version 1.0.4
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.Files" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SuperConvert.Files" Version="1.0.4" />
<PackageReference Include="SuperConvert.Files" />
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.Files --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SuperConvert.Files, 1.0.4"
#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.Files@1.0.4
#: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.Files&version=1.0.4
#tool nuget:?package=SuperConvert.Files&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SuperConvert
Make your data conversion simple
SuperConvert is a lightweight .NET library for converting between common data formats with a simple API.
Packages
SuperConvert(core conversions): NuGetSuperConvert.Files(file conversion helpers): NuGetSuperConvert.Abstraction(DI-friendly service abstraction): NuGet
What's new (SuperConvert)
1.0.5.2
- Updated NuGet package icon (
electric-generator.png).
1.0.5.x
- Fixed CSV escaping/unescaping issue for quote characters (
"). - Export now escapes quotes as doubled quotes (
"") in CSV fields. - Import now correctly parses quoted values and restores escaped quotes.
- Added regression tests for CSV quote handling and quoted comma fields.
Features
- JSON to
DataTable DataTableto JSON- JSON to CSV / CSV to JSON
DataTableto CSV / CSV toDataTable- JSON to XLS /
DataTableto XLS - Gregorian and Hijri date conversion
- String and file Base64 conversion helpers
Target frameworks
Current package targets:
netcoreapp3.1net5.0net6.0net7.0net8.0net9.0net10.0
Installation
Core package
Install-Package SuperConvert -Version 1.0.5.2
Files package
Install-Package SuperConvert.Files -Version 1.0.4.0
Abstraction package
Install-Package SuperConvert.Abstraction -Version 1.0.0.4
Usage
Namespaces
using SuperConvert.Extensions;
using System.Data;
JSON to DataTable
string customers = "[{\"CompanyID\":\"k123\",\"Role\":\"Admin\",\"Country\":\"UK\"}]";
DataTable dt = customers.ToDataTable("TableName");
DataTable to JSON
string json = dt.ToJson();
DataTable to CSV
string path = string.Empty;
string fileName = "DtToCsv";
string csvPath = dt.ToCsv(path, fileName);
CSV to DataTable
DataTable csvDt = ExcelConverter.CsvToDataTable(csvPath);
CSV quote behavior (example)
Input text:
The "elephant" in the room.
CSV field output:
"The ""elephant"" in the room."
Import returns:
The "elephant" in the room.
Latest versions
| Package | Version | Link |
|---|---|---|
| SuperConvert | 1.0.5.2 | https://www.nuget.org/packages/SuperConvert/1.0.5.2 |
| SuperConvert.Files | 1.0.4.0 | https://www.nuget.org/packages/SuperConvert.Files |
| SuperConvert.Abstraction | 1.0.0.4 | https://www.nuget.org/packages/SuperConvert.Abstraction |
| 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 is compatible. 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 is compatible. 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.
-
.NETCoreApp 3.1
- SuperConvert (>= 1.0.5.2)
-
net10.0
- SuperConvert (>= 1.0.5.2)
-
net5.0
- SuperConvert (>= 1.0.5.2)
-
net6.0
- SuperConvert (>= 1.0.5.2)
-
net7.0
- SuperConvert (>= 1.0.5.2)
-
net8.0
- SuperConvert (>= 1.0.5.2)
-
net9.0
- SuperConvert (>= 1.0.5.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.