# Struct TypeInfoMapping

Namespace
  Npgsql.Internal

Assembly
  Npgsql.dll

    [Experimental("NPG9001")]
    public readonly struct TypeInfoMapping

Inherited Members
  ValueType.Equals(object)
  ValueType.GetHashCode()
  ValueType.ToString()
  object.Equals(object, object)
  object.GetType()
  object.ReferenceEquals(object, object)

Extension Methods
  TypeInfoMappingHelpers.CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverter)
  TypeInfoMappingHelpers.CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverter, DataFormat?, bool)
  TypeInfoMappingHelpers.CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverterResolver, bool)
  TypeInfoMappingHelpers.CreateInfo(TypeInfoMapping, PgSerializerOptions, PgConverterResolver, bool, DataFormat?, bool)

## Constructors

### TypeInfoMapping(Type, string, TypeInfoFactory)

    public TypeInfoMapping(Type type, string dataTypeName, TypeInfoFactory factory)

#### Parameters

`type` Type
`dataTypeName` string
`factory` TypeInfoFactory

## Properties

### DataTypeName

    public string DataTypeName { get; init; }

#### Property Value

string

### Factory

    public TypeInfoFactory Factory { get; init; }

#### Property Value

TypeInfoFactory

### MatchRequirement

    public MatchRequirement MatchRequirement { get; init; }

#### Property Value

MatchRequirement

### Type

    public Type Type { get; init; }

#### Property Value

Type

### TypeMatchPredicate

    public Func<Type?, bool>? TypeMatchPredicate { get; init; }

#### Property Value

Func<Type, bool>

## Methods

### DataTypeNameEquals(string)

    public bool DataTypeNameEquals(string dataTypeName)

#### Parameters

`dataTypeName` string

#### Returns

bool

### TypeEquals(Type)

    public bool TypeEquals(Type type)

#### Parameters

`type` Type

#### Returns

bool