Show / Hide Table of Contents

Class BasicSerializer

Inheritance
System.Object
BasicSerializer
CollectionSkipperSerializer
EnumerableSerializer
ValueSerializer<T>
Implements
ISerializer
Namespace: Eco.Core.Serialization.Serializers
Assembly: Eco.Core.dll
Syntax
public abstract class BasicSerializer : Object, ISerializer

Constructors

BasicSerializer(Type, String)

Declaration
protected BasicSerializer(Type type, string schemaType)
Parameters
Type Name Description
System.Type type
System.String schemaType

Properties

ID

Declaration
public ref int ID { get; }
Property Value
Type Description
System.Int32

SchemaType

Declaration
public string SchemaType { get; }
Property Value
Type Description
System.String

Type

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type

Methods

Decode(BinaryReader)

Declaration
public abstract object Decode(BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.Object

DecodeToArray(BinaryReader, Array, Int32)

Declaration
public void DecodeToArray(BinaryReader reader, Array array, int index)
Parameters
Type Name Description
System.IO.BinaryReader reader
System.Array array
System.Int32 index

DecodeToMember(BinaryReader, Object, MemberInfo)

Declaration
public void DecodeToMember(BinaryReader reader, object instance, MemberInfo member)
Parameters
Type Name Description
System.IO.BinaryReader reader
System.Object instance
MemberInfo member

Encode(BinaryWriter, Object, SerializeFlags)

Declaration
public abstract void Encode(BinaryWriter writer, object instance, SerializeFlags flags)
Parameters
Type Name Description
System.IO.BinaryWriter writer
System.Object instance
SerializeFlags flags

Skip(BinaryReader)

Declaration
public virtual void Skip(BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader

Implements

ISerializer

Extension Methods

PropertyChanges.FirePropertyChanged(Object, String)
PropertyChanges.FirePropertyChanged(Object, String, Object, Object)
PropertyChanges.FirePropertyChanged(Object, MemberChangedBeforeAfterEventArgs)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾