Provides access to serializers and related objects.
View sourcepublic IActivator<T> GetActivator<T>()
Gets an activator for the specified type.
View sourcepublic IBaseCodec<TField> GetBaseCodec<TField>()
Gets a base codec for the specified type.
View sourcepublic 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.
View sourcepublic IFieldCodec GetCodec(Type fieldType)
Gets a codec for the specific type.
Parameters
fieldTypeType- The field type.
View sourcepublic IFieldCodec<TField> GetCodec<TField>()
Gets a codec for the specified type.
View sourcepublic 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.
View sourcepublic 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.
View sourcepublic IValueSerializer<TField> GetValueSerializer<TField>()
Gets the value serializer for the specified type.
Returns
A value serializer for the specified type.
View sourcepublic IFieldCodec TryGetCodec(Type fieldType)
Gets a codec for the specific type, or null if no appropriate codec was found.
Parameters
fieldTypeType- The field type.
View sourcepublic IFieldCodec<TField> TryGetCodec<TField>()
Gets a codec for the specific type, or null if no appropriate codec was found.
View sourcepublic 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.
View sourcepublic 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.