This Package enables Immutable collection support in Mapster.
Installation
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<>