Class PgConverterResolver<T>
Inherited Members
Namespace: Npgsql.Internal
Assembly: Npgsql.dll
Syntax
public abstract class PgConverterResolver<T> : PgConverterResolver
Type Parameters
Name | Description |
---|---|
T |
Methods
| Improve this Doc View SourceGet(T?, PgTypeId?)
Gets the appropriate converter to write with based on the given value.
Declaration
public abstract PgConverterResolution? Get(T? value, PgTypeId? expectedPgTypeId)
Parameters
Type | Name | Description |
---|---|---|
T | value | |
PgTypeId? | expectedPgTypeId |
Returns
Type | Description |
---|---|
PgConverterResolution? | The converter resolution. |
Remarks
Implementations should not return new instances of the possible converters that can be returned, instead its expected these are cached once used. Array or other collection converters depend on this to cache their own converter - which wraps the element converter - with the cache key being the element converter reference.