48 references to Equals
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ContentEncodingNegotiator.cs (2)
73if (StringSegment.Equals("*", encodingName, StringComparison.Ordinal)) 80if (StringSegment.Equals("identity", encodingName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http.Abstractions (1)
HostString.cs (1)
254if (StringSegment.Equals(pattern, host, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Localization (1)
RequestLocalizationMiddleware.cs (1)
192supportedCulture => StringSegment.Equals(supportedCulture.Name, name, StringComparison.OrdinalIgnoreCase));
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
435if (ifNoneMatchHeader.Count == 1 && StringSegment.Equals(ifNoneMatchHeader[0], EntityTagHeaderValue.Any.Tag, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionProvider.cs (3)
110if (StringSegment.Equals(provider.EncodingName, encodingName, StringComparison.OrdinalIgnoreCase)) 117if (StringSegment.Equals("*", encodingName, StringComparison.Ordinal)) 130if (StringSegment.Equals("identity", encodingName, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Primitives (1)
StringSegmentComparer.cs (1)
54return StringSegment.Equals(x, y, Comparison);
Microsoft.Net.Http.Headers (39)
CacheControlHeaderValue.cs (12)
577if (StringSegment.Equals(PublicString, name, StringComparison.OrdinalIgnoreCase)) 588if (StringSegment.Equals(MaxAgeString, name, StringComparison.OrdinalIgnoreCase)) 592else if (StringSegment.Equals(PrivateString, name, StringComparison.OrdinalIgnoreCase)) 603if (StringSegment.Equals(NoCacheString, name, StringComparison.OrdinalIgnoreCase)) 607else if (StringSegment.Equals(NoStoreString, name, StringComparison.OrdinalIgnoreCase)) 611else if (StringSegment.Equals(SharedMaxAgeString, name, StringComparison.OrdinalIgnoreCase)) 622if (StringSegment.Equals(MaxStaleString, name, StringComparison.OrdinalIgnoreCase)) 630else if (StringSegment.Equals(MinFreshString, name, StringComparison.OrdinalIgnoreCase)) 641if (StringSegment.Equals(NoTransformString, name, StringComparison.OrdinalIgnoreCase)) 652if (StringSegment.Equals(OnlyIfCachedString, name, StringComparison.OrdinalIgnoreCase)) 663if (StringSegment.Equals(MustRevalidateString, name, StringComparison.OrdinalIgnoreCase)) 674if (StringSegment.Equals(ProxyRevalidateString, name, StringComparison.OrdinalIgnoreCase))
ContentRangeHeaderValue.cs (1)
152StringSegment.Equals(Unit, other.Unit, StringComparison.OrdinalIgnoreCase));
CookieHeaderValue.cs (2)
203return StringSegment.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase) 204&& StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase);
EntityTagHeaderValue.cs (4)
55if (!isWeak && StringSegment.Equals(tag, "*", StringComparison.Ordinal)) 109return obj is EntityTagHeaderValue other && _isWeak == other._isWeak && StringSegment.Equals(_tag, other._tag, StringComparison.Ordinal); 137return !IsWeak && !other.IsWeak && StringSegment.Equals(Tag, other.Tag, StringComparison.Ordinal); 141return StringSegment.Equals(Tag, other.Tag, StringComparison.Ordinal);
MediaTypeHeaderValue.cs (1)
812if (!StringSegment.Equals(parameter.Value, localParameter.Value, StringComparison.OrdinalIgnoreCase))
RangeHeaderValue.cs (1)
112return StringSegment.Equals(_unit, other._unit, StringComparison.OrdinalIgnoreCase) &&
SetCookieHeaderValue.cs (14)
538if (StringSegment.Equals(token, ExpiresToken, StringComparison.OrdinalIgnoreCase)) 556else if (StringSegment.Equals(token, MaxAgeToken, StringComparison.OrdinalIgnoreCase)) 595else if (StringSegment.Equals(token, DomainToken, StringComparison.OrdinalIgnoreCase)) 607else if (StringSegment.Equals(token, PathToken, StringComparison.OrdinalIgnoreCase)) 618else if (StringSegment.Equals(token, SecureToken, StringComparison.OrdinalIgnoreCase)) 624else if (StringSegment.Equals(token, SameSiteToken, StringComparison.OrdinalIgnoreCase)) 634if (StringSegment.Equals(enforcementMode, SameSiteStrictToken, StringComparison.OrdinalIgnoreCase)) 638else if (StringSegment.Equals(enforcementMode, SameSiteLaxToken, StringComparison.OrdinalIgnoreCase)) 642else if (StringSegment.Equals(enforcementMode, SameSiteNoneToken, StringComparison.OrdinalIgnoreCase)) 653else if (StringSegment.Equals(token, HttpOnlyToken, StringComparison.OrdinalIgnoreCase)) 723return StringSegment.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase) 724&& StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase) 727&& StringSegment.Equals(Domain, other.Domain, StringComparison.OrdinalIgnoreCase) 728&& StringSegment.Equals(Path, other.Path, StringComparison.OrdinalIgnoreCase)
StringWithQualityHeaderValue.cs (1)
89if (!StringSegment.Equals(_value, other._value, StringComparison.OrdinalIgnoreCase))
StringWithQualityHeaderValueComparer.cs (3)
58if (!StringSegment.Equals(stringWithQuality1.Value, stringWithQuality2.Value, StringComparison.OrdinalIgnoreCase)) 60if (StringSegment.Equals(stringWithQuality1.Value, Any, StringComparison.Ordinal)) 64else if (StringSegment.Equals(stringWithQuality2.Value, Any, StringComparison.Ordinal))