Skip to content

Polyfill span.Contains(T) and string.Contains/StartsWith/EndsWith(char)

9212f13
Select commit
Loading
Failed to load commit list.
Merged

Polyfill span.Contains(T) #123656

Polyfill span.Contains(T) and string.Contains/StartsWith/EndsWith(char)
9212f13
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages) failed Jan 30, 2026 in 25m 14s

Build linux-x64 debug Libraries_WithPackages failed

Annotations

Check failure on line 16 in src/libraries/Common/src/System/StringPolyfills.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_WithPackages)

src/libraries/Common/src/System/StringPolyfills.cs#L16

src/libraries/Common/src/System/StringPolyfills.cs(16,13): error CA2249: (NETCORE_ENGINEERING_TELEMETRY=Build) Use 'string.Contains' instead of 'string.IndexOf' to improve readability (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2249)