Immutable - MapsterMapper/Mapster GitHub Wiki
Immutable collection supports
PM> Install-Package Mapster.Immutable
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<>