# Delegate TypeInfoFactory

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    [Experimental("NPG9001")]
    public delegate PgTypeInfo TypeInfoFactory(PgSerializerOptions options, TypeInfoMapping mapping, bool requiresDataTypeName)

#### Parameters

`options` PgSerializerOptions
`mapping` TypeInfoMapping
`requiresDataTypeName` bool

  Relevant for `PgResolverTypeInfo` only: whether the instance can be constructed without passing mapping.DataTypeName, an exception occurs otherwise.

#### Returns

PgTypeInfo