aimenux / BinaryFormatterDemo

Implementing serialization/deserialization with binary formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET

BinaryFormatterDemo

Implementing serialization/deserialization with binary formatter

In this repo, i m implementing 3 ways of serialization/deserialization with binary formatter :

1️⃣ BasicSerialization

Models are only decorated with Serializable attribute

2️⃣ CustomSerialization

Models are decorated with Serializable attribute

Models are implementing ISerializable interface

3️⃣ ThirdPartySerialization

Models are considered as third party classes (can't be modified)

Models are serialized using ISerializationSurrogate interface

To run code in debug or release mode, type the following commands in your favorite terminal :

  • .\App.exe
  • .\App.exe Default
  • .\App.exe Basic
  • .\App.exe Custom
  • .\App.exe ThirdParty

BinaryFormatterDemoScreen

Tools : vs19, net 3.1, binary formatter, bullseye

About

Implementing serialization/deserialization with binary formatter


Languages

Language:C# 100.0%