Support System.Collections.Immutable types
See original GitHub issueSupport collection types in System.Collections.Immutable
as mapping target types.
Eg. Mapperly should be able to implement a mapping from an IEnumerable<long>
to an ImmutableList<int>
.
Issue Analytics
- State:
- Created 8 months ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
System.Collections.Immutable Namespace
Represents an immutable list, which is a strongly typed list of objects that can be accessed by index. NuGet package: System.Collections.
Read more >System.Collections.Immutable 7.0.0
This package provides collections that are thread safe and guaranteed to never change their contents, also known as immutable collections.
Read more >.NET Framework - Immutable Collections | ...
An immutable collection is a collection of instances that preserves its structure all the time and disallows element-level assignments, while still offering ...
Read more >How to use immutability in C# | InfoWorld
Immutable collections are those whose members cannot change once they have been created. The System.Collections.Immutable namespace comprises ...
Read more >Support for System Immutable collection types · Issue #81
The System.Collections.Immutable namespace contains immutable collection types. Given the usefulness of immutable types for strong usage ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/riok/mapperly/pull/305 implements support for the following immutable collections:
ImmutableList<T>
ImmutableArray<T>
ImmutableHashSet<T>
ImmutableQueue<T>
ImmutableSortedSet<T>
Still missing:
ImmutableDictionary<TKey, TValue>
ImmutableSortedDictionary<TKey,TValue>
Thanks to @TimothyMakkison for the contribution 🎉
@jamesfoster this could probably be a new feature of Mapperly. However, I think it adds a lot of complexity and I’m not sure if it justifies the added complexity.