SuperConvert.Abstraction 1.0.0.4

dotnet add package SuperConvert.Abstraction --version 1.0.0.4
                    
NuGet\Install-Package SuperConvert.Abstraction -Version 1.0.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.Abstraction" Version="1.0.0.4" />
                    
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.4" />
                    
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.4
                    
#r "nuget: SuperConvert.Abstraction, 1.0.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.Abstraction@1.0.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.Abstraction&version=1.0.0.4
                    
Install as a Cake Addin
#tool nuget:?package=SuperConvert.Abstraction&version=1.0.0.4
                    
Install as a Cake Tool

SuperConvert

Make your data conversion simple

BuildStatus codecov License

SuperConvert is a lightweight .NET library for converting between common data formats with a simple API.

Packages

  • SuperConvert (core conversions): NuGet
  • SuperConvert.Files (file conversion helpers): NuGet
  • SuperConvert.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
  • DataTable to JSON
  • JSON to CSV / CSV to JSON
  • DataTable to CSV / CSV to DataTable
  • JSON to XLS / DataTable to XLS
  • Gregorian and Hijri date conversion
  • String and file Base64 conversion helpers

Target frameworks

Current package targets:

  • netcoreapp3.1
  • net5.0
  • net6.0
  • net7.0
  • net8.0
  • net9.0
  • net10.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 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.

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.4 92 4/21/2026
1.0.0.3 99 4/20/2026
1.0.0.1 366 12/11/2023
1.0.0 245 8/22/2023