Immutable - MapsterMapper/Mapster GitHub Wiki

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<>
⚠️ **GitHub.com Fallback** ⚠️