SharpStackConvert 1.0.0.2
dotnet add package SharpStackConvert --version 1.0.0.2
NuGet\Install-Package SharpStackConvert -Version 1.0.0.2
<PackageReference Include="SharpStackConvert" Version="1.0.0.2" />
<PackageVersion Include="SharpStackConvert" Version="1.0.0.2" />
<PackageReference Include="SharpStackConvert" />
paket add SharpStackConvert --version 1.0.0.2
#r "nuget: SharpStackConvert, 1.0.0.2"
#:package SharpStackConvert@1.0.0.2
#addin nuget:?package=SharpStackConvert&version=1.0.0.2
#tool nuget:?package=SharpStackConvert&version=1.0.0.2
SharpStackConvert
Overview
The SharpStackConvert NuGet package provides a set of extension methods and static class methods for easy conversion of various data types. This document summarizes the classes and methods available in the package.
Classes
TypeConverter
Contains methods for converting objects to various data types.
ToDecimal(object input): decimalToDouble(object input): doubleCString(object input): stringToInt32(object input): intToInt64(object input): longToBool(string input): boolToBool(object input): boolToDateTime(object input): DateTimeToInt16(object input): shortToByte(object input): byteToFloat(object input): floatToGuid(object input): Guid
Base64Converter
Contains methods for encoding and decoding strings and images using Base64.
ToBase64(string input, Encoding encoding): stringFromBase64(string input, Encoding encoding): stringToBase64(string input): stringImageToBase64(Bitmap bitmap): stringFromBase64ToBitmap(string input): BitmapFromBase64(string input): stringToBase64(byte[] input): stringFromBase64ToByteArray(string input): byte[]FromBase64ToByteArray(string input, Encoding encoding): byte[]
CSVConverter
Provides methods for handling CSV (Comma-Separated Values) data.
ToCSVFormat(List<string[]> rows, string splitter = ","): stringToCSVFormat(string[,] rows, string splitter = ","): stringToCSVFormat(string[][] rows, string splitter = ","): stringSplitLines(string input, bool skipEmptyLines): List<string>CSVToTable(string CSVData, string tableName, bool firstLineIsHeader, char columnSplitter): DataTable
DataTableConverter
Offers methods for converting various string arrays and lists to DataTable objects.
ToTable(string[][] rows): DataTableToTable(string[,] rows): DataTableToTable(string[] rows): DataTableToTable(string[] rows, string tableName): DataTableToTable(string[,] rows, bool firstRowIsHeader): DataTableToTable(List<string[]> rows, bool firstRowIsHeader, string tableName): DataTable
HashConverter
Static class providing methods for converting data into hash values (MD5, SHA1, SHA256, SHA384, SHA512).
ToMD5(string input, Encoding encoding): stringToSHA1(string input, Encoding encoding): stringToSHA256(string input, Encoding encoding): stringToSHA384(string input, Encoding encoding): stringToSHA512(string input, Encoding encoding): stringToSHA1(byte[] input, Encoding encoding): stringToSHA256(byte[] input, Encoding encoding): stringToSHA384(byte[] input, Encoding encoding): stringToSHA512(byte[] input, Encoding encoding): stringToMD5(byte[] input, Encoding encoding): stringToMD5(string input): stringToSHA1(string input): stringToSHA256(string input): stringToSHA384(string input): stringToSHA512(string input): stringToSHA1(byte[] input): stringToSHA256(byte[] input): stringToSHA384(byte[] input): stringToSHA512(byte[] input): string
HTMLConverter
Provides methods for converting HTML content.
ToHTMLEscape(string input): stringFromHTMLEscape(string input): string
JsonConverter
Static class offering JSON serialization and deserialization methods.
JsonToObject<T>(string json): TObjectToJson<T>(T obj): string
Contributing
Feel free to contribute to the development of this NuGet package. Submit issues or pull requests on the GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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 was computed. 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. |
-
net6.0
- System.Drawing.Common (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
This release introduces a host of new classes that significantly enhance the functionality of the package, making data conversion tasks even more streamlined and versatile. The newly added classes include CSVConverter, DataTableConverter, HashConverter, HTMLConverter, and JsonConverter. These classes bring a wealth of methods to handle CSV data, convert between DataTables and various string representations, generate hash values, convert HTML content, and facilitate JSON serialization and deserialization. We believe these additions will empower developers with powerful tools to tackle a broader range of data conversion challenges. Upgrade to the latest version now and explore the enhanced capabilities of SharpStackConvert!