Make collection literal IEnumerable<T> by default #7884
Unanswered
virzak
asked this question in
Language Ideas
Replies: 2 comments
-
"must" is a strong word, you could also do: using System.Collections.Frozen;
var fs = FrozenSet.ToFrozenSet([1]); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I want to create a FrozenSet from collection literal, it must be cast to
IEnumerable
first.Should it implement IEnumerable by default?
Beta Was this translation helpful? Give feedback.
All reactions