Table of Contents

Struct TypeConverter<T>

Namespace
Mech3DotNet.Exchange
Assembly
Mech3DotNet.dll

A generic/static type converter.

Used for defining exchange serialization and deserialization of a non-generic C# type.

public readonly struct TypeConverter<T>

Type Parameters

T
Inherited Members

Constructors

TypeConverter(Func<Deserializer, T>, Action<T, Serializer>)

public TypeConverter(Func<Deserializer, T> deserialize, Action<T, Serializer> serialize)

Parameters

deserialize Func<Deserializer, T>
serialize Action<T, Serializer>

Fields

Deserialize

public readonly Func<Deserializer, T> Deserialize

Field Value

Func<Deserializer, T>

Serialize

public readonly Action<T, Serializer> Serialize

Field Value

Action<T, Serializer>