49 references to Equals
Microsoft.AspNetCore.Components (2)
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (2)
211if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 220if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.Endpoints (2)
RazorComponentEndpointInvoker.cs (2)
173if (!type.MediaType.Equals("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) && 174!type.MediaType.Equals("multipart/form-data", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\JsonRequestHelpers.cs (3)
39if (mt.MediaType.Equals(JsonContentType, StringComparison.OrdinalIgnoreCase)) 46if (mt.Suffix.Equals("json", StringComparison.OrdinalIgnoreCase)) 69if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
348return contentType != null && contentType.MediaType.Equals("application/x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase); 354return contentType != null && contentType.MediaType.Equals("multipart/form-data", StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Extensions (3)
HttpRequestJsonExtensions.cs (3)
286if (mt.MediaType.Equals(ContentTypeConstants.JsonContentType, StringComparison.OrdinalIgnoreCase)) 293if (mt.Suffix.Equals("json", StringComparison.OrdinalIgnoreCase)) 328if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.Core (15)
Formatters\MediaType.cs (2)
210if (charset.HasValue && charset.Equals(encoding.WebName, StringComparison.OrdinalIgnoreCase)) 355if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase))
Formatters\TextOutputFormatter.cs (3)
90if (contentTypeCharset.Equals(supportedEncoding.WebName, StringComparison.OrdinalIgnoreCase)) 205if (charset.Equals(encoding.WebName, StringComparison.OrdinalIgnoreCase) || 206charset.Equals("*", StringComparison.Ordinal))
Routing\ViewEnginePath.cs (4)
64segment.Equals(ParentDirectoryToken, StringComparison.Ordinal) || 65segment.Equals(CurrentDirectoryToken, StringComparison.Ordinal)) 85if (segment.Equals(ParentDirectoryToken, StringComparison.Ordinal)) 95else if (segment.Equals(CurrentDirectoryToken, StringComparison.Ordinal))
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (6)
172public bool MatchesAllTypes => Type.Equals("*", StringComparison.OrdinalIgnoreCase); 210public bool MatchesAllSubTypes => SubType.Equals("*", StringComparison.OrdinalIgnoreCase); 221public bool MatchesAllSubTypesWithoutSuffix => SubTypeWithoutSuffix.Equals("*", StringComparison.OrdinalIgnoreCase); 245GetParameter("*").Equals("*", StringComparison.OrdinalIgnoreCase); 349if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase)) 507if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.TagHelpers (3)
EnvironmentTagHelper.cs (3)
96if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase)) 116if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase)) 134if (environment.Equals(currentEnvironmentName, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing (8)
Patterns\RoutePatternMatcher.cs (2)
211if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase)) 220if (!stringSegment.Equals(part.Content, StringComparison.OrdinalIgnoreCase))
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (6)
172public bool MatchesAllTypes => Type.Equals("*", StringComparison.OrdinalIgnoreCase); 210public bool MatchesAllSubTypes => SubType.Equals("*", StringComparison.OrdinalIgnoreCase); 221public bool MatchesAllSubTypesWithoutSuffix => SubTypeWithoutSuffix.Equals("*", StringComparison.OrdinalIgnoreCase); 245GetParameter("*").Equals("*", StringComparison.OrdinalIgnoreCase); 349if (charset.Equals("utf-8", StringComparison.OrdinalIgnoreCase)) 507if (current == input.Length && name.Equals("*", StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.FileProviders.Embedded (3)
Manifest\ManifestDirectory.cs (3)
25if (segment.Equals(".", StringComparison.Ordinal)) 30if (segment.Equals("..", StringComparison.Ordinal)) 37if (segment.Equals(child.Name, StringComparison.OrdinalIgnoreCase))
Microsoft.Extensions.Primitives (1)
StringSegment.cs (1)
245public bool Equals(string? text) => Equals(text, StringComparison.Ordinal);
Microsoft.Net.Http.Headers (7)
ContentDispositionHeaderValue.cs (1)
589|| !parts[2].Equals("b", StringComparison.OrdinalIgnoreCase))
MediaTypeHeaderValue.cs (6)
337public bool MatchesAllTypes => MediaType.Equals(MatchesAllString, StringComparison.Ordinal); 348public bool MatchesAllSubTypes => SubType.Equals(WildcardString, StringComparison.Ordinal); 360SubTypeWithoutSuffix.Equals(WildcardString, StringComparison.OrdinalIgnoreCase); 767return SubTypeWithoutSuffix.Equals(WildcardString, StringComparison.OrdinalIgnoreCase) || 791if (parameter.Name.Equals(WildcardString, StringComparison.OrdinalIgnoreCase)) 798if (parameter.Name.Equals(QualityString, StringComparison.OrdinalIgnoreCase))