Files
dotnet-runtime/src/libraries/System.Net.Http
Stephen Toub 7101ea8780 Fix unnecessary culture-aware comparisons in System.Net (dotnet/corefx#37499)
- string.IndexOf(string) and string.IndexOf(string, int) are culture-aware.  For most situations in System.Net, that's undesirable and Ordinal is both more correct and faster.
- string.IndexOf("c", StringComparison.Ordinal) is better off as string.IndexOf('c') for perf and simplicity.
- string.IndexOf('c') >= 0 is better off as string.Contains('c') for perf and simplicity.

Commit migrated from https://github.com/dotnet/corefx/commit/6acc044c36df2138d86620e2c27d3234c4fa0d3d
2019-05-08 20:24:41 -04:00
..