-
Notifications
You must be signed in to change notification settings - Fork 333
Immutable
chaowlert edited this page Jul 30, 2020
·
1 revision
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<>
- Configuration
- Config inheritance
- Config instance
- Config location
- Config validation & compilation
- Config for nested mapping
- Custom member matching logic
- Constructor mapping
- Before & after mapping
- Setting values
- Shallow & merge mapping
- Recursive & object references
- Custom conversion logic
- Inheritance