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
Typedeserialize
Func<Deserializer, object>serialize
Action<object, Serializer>
Fields
Deserialize
public readonly Func<Deserializer, object> Deserialize
Field Value
Serialize
public readonly Action<object, Serializer> Serialize
Field Value
Type
public readonly Type Type
Field Value
Methods
From<T>(TypeConverter<T>)
public static TypeConverter From<T>(TypeConverter<T> converter) where T : notnull
Parameters
converter
TypeConverter<T>
Returns
Type Parameters
T