Skip to content

IConverter<TValue, TSurrogate> Methods

Functionality for converting between two types.

ConvertFromSurrogate(TSurrogate)

abstract
public abstract TValue IConverter<TValue, ConvertFromSurrogate(in TSurrogate surrogate)
Converts a surrogate value to the value type.

Parameters

surrogateTSurrogate
The surrogate.

Returns

The value.

ConvertToSurrogate(TValue)

abstract
public abstract TSurrogate IConverter<TValue, ConvertToSurrogate(in TValue value)
Converts a value to the value type.

Parameters

valueTValue
The value.

Returns

The surrogate.