Skip to content

CodecProvider Methods

Provides access to serializers and related objects.

GetActivator

View source
public IActivator<T> GetActivator<T>()
Gets an activator for the specified type.

Returns

The activator.

GetBaseCodec

View source
public IBaseCodec<TField> GetBaseCodec<TField>()
Gets a base codec for the specified type.

Returns

A base codec.

GetBaseCopier

View source
public IBaseCopier<TField> GetBaseCopier<TField>()
Gets a base type copier capable of copying instances of type T.

Returns

A base type copier capable of copying instances of type T.

GetCodec(Type)

View source
public IFieldCodec GetCodec(Type fieldType)
Gets a codec for the specific type.

Parameters

fieldTypeType
The field type.

Returns

A codec.

GetCodec

View source
public IFieldCodec<TField> GetCodec<TField>()
Gets a codec for the specified type.

Returns

A codec.

GetDeepCopier(Type)

View source
public IDeepCopier GetDeepCopier(Type fieldType)
Gets a deep copier capable of copying instances of type type.

Parameters

fieldTypeType
The type supported by the returned copier.

Returns

A deep copier capable of copying instances of type type.

GetDeepCopier

View source
public IDeepCopier<T> GetDeepCopier<T>()
Gets a deep copier capable of copying instances of type T.

Returns

A deep copier capable of copying instances of type T.

GetValueSerializer

View source
public IValueSerializer<TField> GetValueSerializer<TField>()
Gets the value serializer for the specified type.

Returns

A value serializer for the specified type.

TryGetCodec(Type)

View source
public IFieldCodec TryGetCodec(Type fieldType)
Gets a codec for the specific type, or null if no appropriate codec was found.

Parameters

fieldTypeType
The field type.

Returns

A codec.

TryGetCodec

View source
public IFieldCodec<TField> TryGetCodec<TField>()
Gets a codec for the specific type, or null if no appropriate codec was found.

Returns

A codec.

TryGetDeepCopier(Type)

View source
public IDeepCopier TryGetDeepCopier(Type fieldType)
Gets a deep copier capable of copying instances of type type, or returns null if an appropriate copier was not found.

Parameters

fieldTypeType
The type supported by the returned copier.

Returns

A deep copier capable of copying instances of type type, or null if an appropriate copier was not found.

TryGetDeepCopier

View source
public IDeepCopier<T> TryGetDeepCopier<T>()
Gets a deep copier capable of copying instances of type T, or returns null if an appropriate copier was not found.

Returns

A deep copier capable of copying instances of type T, or null if an appropriate copier was not found.