ioCode.Serialization 1.0.1

dotnet add package ioCode.Serialization --version 1.0.1                
NuGet\Install-Package ioCode.Serialization -Version 1.0.1                
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="ioCode.Serialization" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ioCode.Serialization --version 1.0.1                
#r "nuget: ioCode.Serialization, 1.0.1"                
#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.
// Install ioCode.Serialization as a Cake Addin
#addin nuget:?package=ioCode.Serialization&version=1.0.1

// Install ioCode.Serialization as a Cake Tool
#tool nuget:?package=ioCode.Serialization&version=1.0.1                

ioCode.Serialization

C# types serialization library. Serializes and deserializes objects into and from XML documents.

Classes

ioCode.Serialization library has two serialization classes

  • XmlSerializer<T> Xml serialization object to serialize custom types
  • BinSerializer<T> Bin serialization object for XML-based serialization of custom types. The serialized output file is encrypted.

XmlSerializer<T>

Write to file
  Product product = new Product();
  product.Name = "Product1";
  bool isSuccess = XmlSerializer<Product>.WriteFile(@"C:\users\[user]\documents\product.xml", product);
  MessageBox.Show(isSuccess ? "Success" : "Fail");
Read from file
  Product product = XmlSerializer<Product>.ReadFile(@"C:\users\[user]\documents\product.xml");
  MessageBox.Show((product != null) ? "Success" : "Fail");

BinSerializer<T>

Write to file
  Product product = new Product();
  product.Name = "Product1";
  bool isSuccess = BinSerializer<Product>.WriteFile(@"C:\users\[user]\documents\product.bin", "password123", product);
  MessageBox.Show(isSuccess ? "Success" : "Fail");
Read from file
  Product product = BinSerializer<Product>.ReadFile(@"C:\users\[user]\documents\product.bin", "password123");
  MessageBox.Show((product != null) ? "Success" : "Fail");
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.1 260 10/30/2023
1.0.0 225 4/20/2022

+XmlCommentAttribute, +XmlUnknownElement