You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C# language has evolved and now supports constructing arbitrary collections via collection expressions.
Autofac should use similar logic when constructing collections. This will allow many more collection types (such as ImmutableList and ImmutableArray) to be used.
Desired Solution
Any collection constructable by a collection expression should be constructable by Autofac.
Alternatives You've Considered
Leave things as-is.
The text was updated successfully, but these errors were encountered:
Last time this got filed - #1408 - we asked for a bit more up front research and info on how this should work. That info was never provided so the other issue was closed.
I'll leave this one open for a week pending the input, them I'll close this one, too.
"Just work with all collection expression types" isn't enough - you actually need to do the work to get the list of those types. Given Autofac is not the compiler and collection expressions are a syntactic sugar added by the compiler (just like async/await generate the thread handling code for you), there's no way to "just handle" every collection type. We actually have to know about it, reflection style, so we can manually construct it.
I'm sorry that means extra work for you, but we need to rely on the folks filling the requests to do the leg-work to define new features in detail. There's not enough time or people to do that for you.
Problem Statement
The C# language has evolved and now supports constructing arbitrary collections via collection expressions.
Autofac should use similar logic when constructing collections. This will allow many more collection types (such as ImmutableList and ImmutableArray) to be used.
Desired Solution
Any collection constructable by a collection expression should be constructable by Autofac.
Alternatives You've Considered
Leave things as-is.
The text was updated successfully, but these errors were encountered: