Optimize implicit casts from string literals to ReadOnlySpan<char> #23358
Labels
Area-Compilers
Bug
Language-C#
New Language Feature - Readonly References
Readonly References
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
If possible, we should just point to the underlying data of the string.
Ideally there is a helper that takes a string token or something like that - to avoid directly dealing with pointers, which us formally unsafe.
realted to: https://github.com/dotnet/corefx/issues/25413
The text was updated successfully, but these errors were encountered: