-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add params ReadOnlySpan<T> overloads #100898
Conversation
…utableSortedSet, and ImmutableStack
Note regarding the
|
src/libraries/System.Collections.Immutable/tests/ImmutableHashSetTest.cs
Show resolved
Hide resolved
I'm really scratching my head trying to understand why some projects fail to build. That's also why I sent this as draft.
|
@jozkee, try adding That said, I'm not sure why CreateReadOnlySpan would be a required member, since I'd have expected there to be fallback strategies if it's not available (that said, I'm glad this error'd for us, as otherwise presumably we would have been silently falling back to slower support). @AlekseyTs? |
FWIW: I brute-forced it and noticed the error goes away if I exclude the new string.Join overloads. @stephentoub Adding a reference to System.Memory fixes it too, is that the path we want to follow? |
Yes |
I assume a |
* Add params span overloads * Complete src/ref changes * Add tests for MemoryExtensions, String, and StringBuilder * Update tests for ImmutableHashSet, ImmutableList, ImmutableQueue, ImmutableSortedSet, and ImmutableStack * Update tests for System.Diagnostics.Metrics * Update tests for Console.Write[Line] * Update tests for Deleate.Combine * Update tests for IndentedTextWriter.Write[Line] * Update tests for Path.Combine and Path.Join * Update tests for StreamWriter and TextWriter * Update tests for JsonArray and JsonTypeInfoResolver.Combine * Update tests for System.Threading * Add project reference to System.Memory where needed * Fix missing params in ImmutableSortedSet.cs * Fix error CS9220 in System.Dynamic.Runtime.Tests * Suppress CS9220 in System.Dynamic.Runtime.Tests * Address review feedback --------- Co-authored-by: Stephen Toub <[email protected]>
…101308) * Reapply "Add params ReadOnlySpan<T> overloads (dotnet#100898)" (dotnet#101123) This reverts commit 3e569f5. * Comment-out params keyword * Remove /*params*/ from ref
…101308) * Reapply "Add params ReadOnlySpan<T> overloads (dotnet#100898)" (dotnet#101123) This reverts commit 3e569f5. * Comment-out params keyword * Remove /*params*/ from ref
Fixes #77873