Table of Contents

Struct TypeConverter

Namespace
Mech3DotNet.Exchange
Assembly
Mech3DotNet.dll

A non-generic/dynamic type converter.

Used for registering generic type conversions with a serializer or deserializer.

public readonly struct TypeConverter
Inherited Members

Constructors

TypeConverter(Type, Func<Deserializer, object>, Action<object, Serializer>)

public TypeConverter(Type type, Func<Deserializer, object> deserialize, Action<object, Serializer> serialize)

Parameters

type Type
deserialize Func<Deserializer, object>
serialize Action<object, Serializer>

Fields

Deserialize

public readonly Func<Deserializer, object> Deserialize

Field Value

Func<Deserializer, object>

Serialize

public readonly Action<object, Serializer> Serialize

Field Value

Action<object, Serializer>

Type

public readonly Type Type

Field Value

Type

Methods

From<T>(TypeConverter<T>)

public static TypeConverter From<T>(TypeConverter<T> converter) where T : notnull

Parameters

converter TypeConverter<T>

Returns

TypeConverter

Type Parameters

T