Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 2.48 KB

BinarySerializationContext.Marshal_TIn,TOut_(Func_TIn,TOut_).md

File metadata and controls

34 lines (21 loc) · 2.48 KB

BinarySerializationContext.Marshal<TIn,TOut>(Func<TIn,TOut>) Method

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);

Type parameters

TIn

The type which need to be converted.

TOut

The resulting type of the conversion.

Parameters

converter System.Func<TIn,TOut>

The function used for the conversion.

Returns

BinarySerializationContext
Returns itself.