Skip to content

atarason/ObjectPort

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectPort

Ultra fast binary serializer for .NET

Features

  • Serialization of all primitive types, strings, enums, date types
  • Serialization of arrays and collections: List, HashSet, LinkedList, Queue, SortedSet, Stack
  • Serialization of dictionaries: Dictionary, SortedList, SortedDictionary
  • Any nesting level of arrays or dictionaries (i.e. arrays of arrays, dictionaries of dictionaries, arrays of dictionaries, etc)
  • Polymorphic hierarchies serialization
  • Anonymous types serializations
  • .NET Core support
  • The fastest in the class of binary serializers ( see Benchmarks)

Usage

In order to serialize / deserialize a custom type it should be registered:

Serializer.RegisterTypes(new [] { typeof(MyType1), typeof(MyType2) })

to serialize:

Serializer.Serialize(stream, myObj);

to deserialize:

var myObj = (MyObjType)Serializer.Deserialize(stream);

About

Very fast binary serializer for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%