π SuperConvert is the ultimate tool for data conversion in C#/.NET! It supports JSON, XML, CSV, XLS and much more! With SuperConvert, you can easily convert any data format to another with just a few lines of code. πͺ
π Its documentation provides clear and detailed explanations of all the methods and features available, making it easy to use and master. π€
π» And if you're looking for more resources, the SuperConvert blog has plenty of articles on data conversion and best practices. π°
π§ Don't miss out on the powerful features SuperConvert has to offer, such as encoding and decoding files to/from base64, converting between data formats with customizable options, and more! βοΈ
π Whether you're a seasoned developer or just starting out, SuperConvert is the perfect tool to simplify your data conversion tasks and improve your workflow. Give it a try today! π»π¨βπ»
-
Convert Json to Datatable
-
Convert Datatable to Json
-
DateTime convert from Gregorian To Hijri
-
DateTime convert from Hijri To Gregorian
-
Json convert to Csv
-
DataTable convert to Csv
-
Csv convert to Json
-
Csv convert to DataTable
-
Json to Xls
-
Datatable to Xls
-
Excel sheets (XLS, XLSX) and other data containers/types is already here Just use
.ToXls()
SuperConvet's code is based on .net core technology (netcoreapp3.1, net5.0, net6.0, net7.0, net8)
-
[.NetCore3.1, .Net5, .Net6, .Net7, .Net8] - C# !
-
GitHub Code - SuperConvert Project
Run the command on your nuget package console .
Install-Package SuperConvert -Version 1.0.4.9
Open your nuget package manager and type the name of 'SuperConvert' on the search
using SuperConvert.Extentions;
using System.Data;
string customers = "[{\"CompanayID\":\"k123\",\"Role\":\"Admin\",\"Country\":\"UK\",\"Asset\":\"HD\",\"incident\":null}, {\"CompanayID\":\"k234\",\"Role\":\"User\",\"Country\":\"US\",\"Asset\":\"HD12\",\"incident\":\"abc 1\"}]";
DataTable dt = customers.ToDataTable("TableName");
string json = dt.ToJson();
DateTime timeNow = DateTime.Now;
DateTime hijri = DateConverter.GregorianToHijri(timeNow);
DateTime gregorian = DateConverter.HijriToGregorian(hijri);
string path = string.Empty;
string fileName = "DtToExcel";
string csvPath = dt.ToCsv(path, fileName);
fileName = "JsonToExcel";
path = string.Empty;
string csvPath = json.ToCsv(path, fileName)
fileName = "JsonToExcel";
path = string.Empty;
string csvPath = json.ToXls(path, fileName)
string jsonFromCsv = ExcelConverter.CsvToJson(csvPath);
DataTable csvDt = ExcelConverter.CsvToDataTable(csvPath);