# Class NpgsqlArrayConverter<TModelCollection, TConcreteModelCollection, TProviderCollection>

Namespace
  Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion

Assembly
  Npgsql.EntityFrameworkCore.PostgreSQL.dll

A value converter that can convert between array types; accepts an optional ValueConverter for the element, but can be used without one to convert e.g. from a list to an array.

    public class NpgsqlArrayConverter<TModelCollection, TConcreteModelCollection, TProviderCollection> : ValueConverter<TModelCollection, TProviderCollection> where TModelCollection : IEnumerable where TConcreteModelCollection : IEnumerable where TProviderCollection : IEnumerable

#### Type Parameters

`TModelCollection`
`TConcreteModelCollection`
`TProviderCollection`

Inheritance
  object
  ValueConverter
  ValueConverter<TModelCollection, TProviderCollection>
  NpgsqlArrayConverter<TModelCollection, TConcreteModelCollection, TProviderCollection>

Inherited Members
  ValueConverter<TModelCollection, TProviderCollection>.ConvertToProvider
  ValueConverter<TModelCollection, TProviderCollection>.ConvertFromProvider
  ValueConverter<TModelCollection, TProviderCollection>.ConvertToProviderTyped
  ValueConverter<TModelCollection, TProviderCollection>.ConvertFromProviderTyped
  ValueConverter<TModelCollection, TProviderCollection>.ConvertToProviderExpression
  ValueConverter<TModelCollection, TProviderCollection>.ConvertFromProviderExpression
  ValueConverter<TModelCollection, TProviderCollection>.ModelClrType
  ValueConverter<TModelCollection, TProviderCollection>.ProviderClrType
  ValueConverter<TModelCollection, TProviderCollection>.ConstructorExpression
  ValueConverter.CheckTypeSupported(Type, Type, params Type[])
  ValueConverter.ComposeWith(ValueConverter)
  ValueConverter.ConvertToProvider
  ValueConverter.ConvertFromProvider
  ValueConverter.ConvertToProviderExpression
  ValueConverter.ConvertFromProviderExpression
  ValueConverter.ModelClrType
  ValueConverter.ProviderClrType
  ValueConverter.MappingHints
  ValueConverter.ConvertsNulls
  ValueConverter.ConstructorExpression
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### NpgsqlArrayConverter()

Constructs a new instance of NpgsqlArrayConverter<TModelCollection, TConcreteModelCollection, TProviderCollection>.

    public NpgsqlArrayConverter()

### NpgsqlArrayConverter(ValueConverter?)

Constructs a new instance of NpgsqlArrayConverter<TModelCollection, TConcreteModelCollection, TProviderCollection>.

    public NpgsqlArrayConverter(ValueConverter? elementConverter)

#### Parameters

`elementConverter` ValueConverter

## Properties

### ElementConverter

The value converter for the element type of the array.

    public virtual ValueConverter? ElementConverter { get; }

#### Property Value

ValueConverter