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