Click or drag to resize

SerialisationUtility class

Provides support for the serialisation and de-serialisation of objects.
Inheritance hierarchy
SystemObject
  NetEti.ObjectSerializerSerialisationUtility

Namespace: NetEti.ObjectSerializer
Assembly: NetEti.ObjectSerializer (in NetEti.ObjectSerializer.dll) Version: 1.0.0+3401da3cf5a9b62af93a112ab3b276c2efb89060
Syntax
public class SerialisationUtility

The SerialisationUtility Type exposes the following members.

Constructors
 NameDescription of the
Public MethodSerialisationUtilityinitializes a new instance of the SerialisationUtility class
Back to the top
Methods
 NameDescription of the
Public MethodStatic MemberDeserializeObjectFromBase64String Deserializes a byte list into a corresponding object.
Public MethodStatic MemberDeserializeObjectFromByteList Deserializes a byte list into a corresponding object.
Public MethodStatic MemberDeserializeObjectFromCodedString Deserializes a byte list into a corresponding object.
Public MethodStatic MemberSerializeObjectToBase64String Serializes an object into a string with a given encoding.
Public MethodStatic MemberSerializeObjectToByteList Serializes an object into a byte list.
Public MethodStatic MemberSerializeObjectToCodedString Serializes an object into a string with a given encoding.
Back to the top
Remarks
Author: Erik Nagel 15/03/2015 Erik Nagel: created. 18.06.2023 Erik Nagel: in the course of porting to .Net7, this library had to be completely be revised: SYSLIB0011 "BinaryFormatter.Serialize(Stream, object)" is obsolete: "BinaryFormatter serialisation is obsolete and should not be used. See https://aka.ms/binaryformatter for more information." Thanks to Brian Sullivan and Dzyann for their help on de-serialising Types: https://stackoverflow.com/questions/12306/can-i-serialize-a-c-sharp-type-object 31.08.2023 Erik Nagel: New switch anonymousToString implemented.
See also