38 references to Equals
Microsoft.AspNetCore.Http.Abstractions (1)
HostString.cs (1)
266
if (hostRoot.
Equals
(allowedRoot, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.Core (9)
Formatters\MediaType.cs (2)
459
return Name.
Equals
(name, StringComparison.OrdinalIgnoreCase);
464
return HasName(other.Name) && Value.
Equals
(other.Value, StringComparison.OrdinalIgnoreCase);
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (7)
372
set.Type.
Equals
(Type, StringComparison.OrdinalIgnoreCase);
407
set.SubTypeWithoutSuffix.
Equals
(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase);
414
return set.SubTypeSuffix.
Equals
(SubTypeSuffix, StringComparison.OrdinalIgnoreCase);
419
return set.SubType.
Equals
(SubType, StringComparison.OrdinalIgnoreCase) ||
420
set.SubType.
Equals
(SubTypeSuffix, StringComparison.OrdinalIgnoreCase);
611
return Name.
Equals
(name, StringComparison.OrdinalIgnoreCase);
616
return HasName(other.Name) && Value.
Equals
(other.Value, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing (7)
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (7)
372
set.Type.
Equals
(Type, StringComparison.OrdinalIgnoreCase);
407
set.SubTypeWithoutSuffix.
Equals
(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase);
414
return set.SubTypeSuffix.
Equals
(SubTypeSuffix, StringComparison.OrdinalIgnoreCase);
419
return set.SubType.
Equals
(SubType, StringComparison.OrdinalIgnoreCase) ||
420
set.SubType.
Equals
(SubTypeSuffix, StringComparison.OrdinalIgnoreCase);
611
return Name.
Equals
(name, StringComparison.OrdinalIgnoreCase);
616
return HasName(other.Name) && Value.
Equals
(other.Value, StringComparison.OrdinalIgnoreCase);
Microsoft.Extensions.Primitives (2)
StringSegment.cs (2)
207
public bool Equals(StringSegment other) =>
Equals
(other, StringComparison.Ordinal);
238
public static bool Equals(StringSegment a, StringSegment b, StringComparison comparisonType) => a.
Equals
(b, comparisonType);
Microsoft.Net.Http.Headers (19)
ContentDispositionHeaderValue.cs (1)
240
return _dispositionType.
Equals
(other._dispositionType, StringComparison.OrdinalIgnoreCase) &&
MediaTypeHeaderValue.cs (11)
483
return _mediaType.
Equals
(other._mediaType, StringComparison.OrdinalIgnoreCase) &&
672
set.Type.
Equals
(Type, StringComparison.OrdinalIgnoreCase);
680
Type.
Equals
(type, StringComparison.OrdinalIgnoreCase);
753
set.SubTypeWithoutSuffix.
Equals
(SubTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase);
768
SubTypeWithoutSuffix.
Equals
(subTypeWithoutSuffix, StringComparison.OrdinalIgnoreCase);
773
return set.SubType.
Equals
(SubType, StringComparison.OrdinalIgnoreCase) ||
774
set.SubType.
Equals
(Suffix, StringComparison.OrdinalIgnoreCase);
779
return subType.
Equals
(SubType, StringComparison.OrdinalIgnoreCase) ||
780
SubType.
Equals
(suffix, StringComparison.OrdinalIgnoreCase);
825
return set.Suffix.
Equals
(Suffix, StringComparison.OrdinalIgnoreCase);
832
return Suffix.
Equals
(suffix, StringComparison.OrdinalIgnoreCase);
MediaTypeHeaderValueComparer.cs (3)
55
if (!mediaType1.Type.
Equals
(mediaType2.Type, StringComparison.OrdinalIgnoreCase))
82
else if (!mediaType1.SubType.
Equals
(mediaType2.SubType, StringComparison.OrdinalIgnoreCase))
101
else if (!mediaType1.Suffix.
Equals
(mediaType2.Suffix, StringComparison.OrdinalIgnoreCase))
NameValueHeaderValue.cs (4)
147
if (!_name.
Equals
(other._name, StringComparison.OrdinalIgnoreCase))
164
return (_value.
Equals
(other._value, StringComparison.Ordinal));
168
return (_value.
Equals
(other._value, StringComparison.OrdinalIgnoreCase));
446
if (value.Name.
Equals
(name, StringComparison.OrdinalIgnoreCase))