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
@jcouv I think we likely don't need to add this. We now hava target typed collection expressions, which work for arrays, and which provide a simpler and cleaner syntax for this: KeyValuePair<string, string>[] array = [new("key1", value1), new("key2", value2)];
Are you ok with me closing this out? Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Target-typed implicit array creation expression
new[]
Summary
Allow
KeyValuePair<string, string>[] array = new[] { new("key1", value1), new("key2", value2) };
Design meetings
The text was updated successfully, but these errors were encountered: