Show / Hide Table of Contents

Class ClassSerializer<T>

Inheritance
System.Object
ObjectSerializer
ClassSerializer
ClassSerializer<T>
ClassMigrationSerializer<T>
Implements
IReferenceableSerializer
IInitializableSerializer
ISerializer
Inherited Members
ClassSerializer.PostLoadMethods
ClassSerializer.LoadedObjectsWithIDS
ClassSerializer.SerializationBindings
ClassSerializer.onDeserializeMethods
ClassSerializer.onPostLoadMethods
ClassSerializer.DecodeInstance(BinaryReader)
ClassSerializer.SkipInstance(BinaryReader)
ClassSerializer.Members
ObjectSerializer.parent
ObjectSerializer.Encode(BinaryWriter, Object, SerializeFlags)
ObjectSerializer.EncodeWith(ISerializer, BinaryWriter, Object, SerializeFlags)
ObjectSerializer.DecodeReferenceable(BinaryReader)
ObjectSerializer.Decode(BinaryReader)
ObjectSerializer.DecodeObject(BinaryReader, Int32)
ObjectSerializer.DecodeToArray(BinaryReader, Array, Int32)
ObjectSerializer.DecodeToMember(BinaryReader, Object, MemberInfo)
ObjectSerializer.Skip(BinaryReader)
ObjectSerializer.ToString()
ObjectSerializer.IsNullableType
ObjectSerializer.Type
ObjectSerializer.SchemaType
ObjectSerializer.Schema
ObjectSerializer.ReferenceService
ObjectSerializer.ID
Namespace: Eco.Core.Serialization.Serializers
Assembly: Eco.Core.dll
Syntax
public class ClassSerializer<T> : ClassSerializer, IReferenceableSerializer, IInitializableSerializer, ISerializer
Type Parameters
Name Description
T

Constructors

ClassSerializer(SimpleSerializer)

Declaration
public ClassSerializer(SimpleSerializer parent)
Parameters
Type Name Description
SimpleSerializer parent

Properties

NewInstance

Declaration
public override object NewInstance { get; }
Property Value
Type Description
System.Object
Overrides
ClassSerializer.NewInstance

Methods

DecodeMember(MemberInfo, ref Object, BinaryReader)

Declaration
protected void DecodeMember(MemberInfo member, ref object instance, BinaryReader reader)
Parameters
Type Name Description
MemberInfo member
System.Object instance
System.IO.BinaryReader reader

EncodeInstance(BinaryWriter, Object, SerializeFlags)

Declaration
protected override void EncodeInstance(BinaryWriter writer, object instance, SerializeFlags flags)
Parameters
Type Name Description
System.IO.BinaryWriter writer
System.Object instance
SerializeFlags flags
Overrides
ObjectSerializer.EncodeInstance(BinaryWriter, Object, SerializeFlags)

GetFields(Type)

Declaration
protected IEnumerable<FieldInfo> GetFields(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo>

GetMethodsToCallAfterSerialize(Type, Boolean)

Declaration
protected IEnumerable<MethodInfo> GetMethodsToCallAfterSerialize(Type type, bool postAllLoading)
Parameters
Type Name Description
System.Type type
System.Boolean postAllLoading
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo>

GetProperties(Type)

Declaration
protected IEnumerable<PropertyInfo> GetProperties(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo>

Initialize()

Declaration
public virtual void Initialize()

OnDecodeComplete(Object)

Declaration
protected void OnDecodeComplete(object instance)
Parameters
Type Name Description
System.Object instance

Implements

IReferenceableSerializer
IInitializableSerializer
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
☀
☾