Class TypeInfoMappingHelpers
[Experimental("NPG9001")]
public static class TypeInfoMappingHelpers
- Inheritance
-
TypeInfoMappingHelpers
- Inherited Members
Methods
CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverter)
Creates a PgTypeInfo from a mapping, optins, and a converter.
public static PgTypeInfo CreateInfo(this TypeInfoMapping mapping, PgSerializerOptions options, PgConverter converter)
Parameters
mappingTypeInfoMappingThe mapping to create an info for.
optionsPgSerializerOptionsThe options to use.
converterPgConverterThe converter to create a PgTypeInfo for.
Returns
- PgTypeInfo
The created info instance.
CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverter, DataFormat?, bool)
Creates a PgTypeInfo from a mapping, options, and a converter.
public static PgTypeInfo CreateInfo(this TypeInfoMapping mapping, PgSerializerOptions options, PgConverter converter, DataFormat? preferredFormat = null, bool supportsWriting = true)
Parameters
mappingTypeInfoMappingThe mapping to create an info for.
optionsPgSerializerOptionsThe options to use.
converterPgConverterThe converter to create a PgTypeInfo for.
preferredFormatDataFormat?Whether to prefer a specific data format for this info, when null it defaults to the most suitable format.
supportsWritingboolWhether the converters returned from the given converter resolver support writing.
Returns
- PgTypeInfo
The created info instance.
CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverterResolver, bool)
Creates a PgResolverTypeInfo from a mapping, options, and a converter resolver.
public static PgResolverTypeInfo CreateInfo(this TypeInfoMapping mapping, PgSerializerOptions options, PgConverterResolver resolver, bool includeDataTypeName)
Parameters
mappingTypeInfoMappingThe mapping to create an info for.
optionsPgSerializerOptionsThe options to use.
resolverPgConverterResolverThe resolver to create a PgResolverTypeInfo for.
includeDataTypeNameboolWhether to pass mapping.DataTypeName to the PgResolverTypeInfo constructor, mandatory when TypeInfoFactory(..., requiresDataTypeName: true).
Returns
- PgResolverTypeInfo
The created info instance.
CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverterResolver, bool, DataFormat?, bool)
Creates a PgResolverTypeInfo from a mapping, options, and a converter resolver.
public static PgResolverTypeInfo CreateInfo(this TypeInfoMapping mapping, PgSerializerOptions options, PgConverterResolver resolver, bool includeDataTypeName, DataFormat? preferredFormat = null, bool supportsWriting = true)
Parameters
mappingTypeInfoMappingThe mapping to create an info for.
optionsPgSerializerOptionsThe options to use.
resolverPgConverterResolverThe converter resolver to create a PgResolverTypeInfo for.
includeDataTypeNameboolWhether to pass mapping.DataTypeName to the PgResolverTypeInfo constructor, mandatory when TypeInfoFactory(..., requiresDataTypeName: true).
preferredFormatDataFormat?Whether to prefer a specific data format for this info, when null it defaults to the most suitable format.
supportsWritingboolWhether the converters returned from the given converter resolver support writing.
Returns
- PgResolverTypeInfo
The created info instance.