forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove XmlConvert.StrEqual and use Span<char>.StartsWith() instead. (d…
…otnet#74955) * Use Span.SequenceEqual instead if manual loop over char array. * Remove StrEqual. Replace with StartsWith as suggested. * Remove not needed brackets + fix tests * Use switch expression for "verison", "encoding" and "standalone" * Use ranges + one more switch expression * Remove StartsWith helper method from ParsingState * Address range feedback * Add test for XmlTextReader.ReadChars * Fix test Co-authored-by: Traian Zaprianov <[email protected]>
- Loading branch information
1 parent
d10cc5a
commit abffaf8
Showing
5 changed files
with
315 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.