TextSerializationContext.Marshal_TIn,TOut_(Func_TIn,TOut_).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.Serialization.TextSerializationContext
TextSerializationContext.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.TextSerializationContext 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
TextSerializationContext
Returns itself.