Class ClassSerializer<T>
Inheritance
System.Object
ClassSerializer<T>
Assembly: Eco.Core.dll
Syntax
public class ClassSerializer<T> : ClassSerializer, IReferenceableSerializer, IInitializableSerializer, ISerializer
Type Parameters
Constructors
ClassSerializer(SimpleSerializer)
Declaration
public ClassSerializer(SimpleSerializer parent)
Parameters
Properties
NewInstance
Declaration
public override object NewInstance { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
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
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
Extension Methods