Skip to content
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

Use 'AsSpan' over 'Substring' in 'System.Private.Xml' #48277

Merged

Conversation

NewellClark
Copy link
Contributor

Fix violation found by the Prefer 'AsSpan' over 'Substring' analyzer in System.Private.Xml (issue).

- Prefer 'AsSpan' over 'Substring' when span-based overloads are available.
@NewellClark
Copy link
Contributor Author

NewellClark commented Feb 14, 2021

Just hit issue #32805. Rerunning (error log)

…CodeIdentifier.cs


Apply suggested optimization.

Co-authored-by: Stephen Toub <[email protected]>
@stephentoub stephentoub merged commit 5c2b21b into dotnet:master Feb 15, 2021
@NewellClark NewellClark deleted the fix-violation-System-Private-Xml branch February 15, 2021 04:02
@ghost ghost locked as resolved and limited conversation to collaborators Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants