Adds a convertion between the type TIn and the type TOut during a serialization operation.
public DefaultEcs.Serialization.BinarySerializationContext Marshal<TIn,TOut>(System.Func<TIn,TOut> converter);
TIn
The type which need to be converted.
TOut
The resulting type of the conversion.
converter
System.Func<TIn,TOut>
The function used for the conversion.
BinarySerializationContext
Returns itself.