Skip to content
chaowlert edited this page Jul 30, 2020 · 1 revision

Mapster.Immutable

Immutable collection supports

Install

PM> Install-Package Mapster.Immutable

Usage

Call EnableImmutableMapping from your TypeAdapterConfig to enable Immutable collection.

TypeAdapterConfig.GlobalSettings.EnableImmutableMapping();

or

config.EnableImmutableMapping();

This will allow mapping to

  • IImmutableDictionary<,>
  • IImmutableList<>
  • IImmutableQueue<>
  • IImmutableSet<>
  • IImmutableStack<>
  • ImmutableArray<>
  • ImmutableDictionary<,>
  • ImmutableHashSet<>
  • ImmutableList<>
  • ImmutableQueue<>
  • ImmutableSortedDictionary<,>
  • ImmutableSortedSet<>
  • ImmutableStack<>
Clone this wiki locally