63 references to Compare
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
5620 == string.Compare(uri, 0, x_schema, 0, x_schema.Length, StringComparison.Ordinal) &&
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
144&& string.Compare("charset=", 0, contentType, semiColonIndex + 2, 8, StringComparison.OrdinalIgnoreCase) == 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
936String.Compare(interfaceName, 0, Strings.InterfaceTypePrefix, 0, Strings.InterfaceTypePrefix.Length, StringComparison.Ordinal) == 0 &&
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
391return string.Compare(u1Path, 0, u2Path, 0, u1Len, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0;
Metadata\MetadaExchangeResolver.cs (1)
455if (String.Compare(paramDecl, 0, paramName, 0, paramName.Length, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
941result = string.Compare(
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
SymbolApiConventionMatcher.cs (1)
180return string.Compare(name, index, conventionName, 1, conventionName.Length - 1, StringComparison.Ordinal) == 0;
Microsoft.AspNetCore.Mvc.Core (3)
ApiExplorer\ApiConventionMatcher.cs (1)
165return string.Compare(name, index, conventionName, 1, conventionName.Length - 1, StringComparison.Ordinal) == 0;
ModelBinding\PrefixContainer.cs (2)
193var compare = string.Compare( 250var compare = string.Compare(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
110if (string.Compare(relativePath, areaEndIndex, AreaPagesRoot, 0, AreaPagesRoot.Length, StringComparison.OrdinalIgnoreCase) != 0)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
TestInfrastructure\DirectoryNode.cs (2)
87if (string.Compare(path, directoryLength, filePath, directoryLength, path.Length - directoryLength, StringComparison.OrdinalIgnoreCase) == 0) 157if (string.Compare(path, startIndex, directoryPath, startIndex, directoryPath.Length - startIndex, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageRouteModelFactory.cs (1)
110if (string.Compare(relativePath, areaEndIndex, AreaPagesRoot, 0, AreaPagesRoot.Length, StringComparison.OrdinalIgnoreCase) != 0)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
GlobbingUrlBuilder.cs (3)
212if (string.Compare(x, 0, y, 0, compareLength, StringComparison.Ordinal) == 0) 218return string.Compare(x, xExtIndex, y, yExtIndex, length, StringComparison.Ordinal); 246result = string.Compare(
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
77destination = string.Compare(
Matching\JumpTableSingleEntryBenchmark.cs (1)
66destination = string.Compare(
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (2)
64string.Compare( 86string.Compare(
Microsoft.AspNetCore.Routing.Tests (2)
Matching\BarebonesMatcher.cs (2)
64string.Compare( 86string.Compare(
Microsoft.Build.Framework (1)
MSBuildNameIgnoreCaseComparer.cs (1)
106return String.Compare(compareToString, 0, constrainedString, start, lengthToCompare, StringComparison.OrdinalIgnoreCase) == 0;
Microsoft.CodeAnalysis (1)
Symbols\Attributes\CommonAttributeData.cs (1)
128if (index < 0 || string.Compare(namespaceName, index, name, 0, nameLength, options) != 0)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\TypeSymbolExtensions.cs (1)
1826return (name.Length == length) && (string.Compare(name, 0, namespaceName, offset, length, comparison) == 0);
Microsoft.CodeAnalysis.Features (1)
TaskList\AbstractTaskListService.cs (1)
94if (string.Compare(
Microsoft.Net.Http.Headers (2)
HeaderUtilities.cs (2)
253&& string.Compare(headerValues[i], current, targetValue, 0, tokenLength, StringComparison.OrdinalIgnoreCase) == 0 309&& string.Compare(segment, current, targetDirectives, 0, tokenLength, StringComparison.OrdinalIgnoreCase) == 0)
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\PathInternal.cs (1)
163&& string.Compare(
PresentationCore (1)
System\Windows\Navigation\BaseUriHelper.cs (1)
383string.Compare(uri.OriginalString, 0, Uri.UriSchemeFile, 0, Uri.UriSchemeFile.Length, StringComparison.OrdinalIgnoreCase) != 0)
PresentationFramework (1)
System\Windows\Documents\XamlToRtfParser.cs (1)
525if (string.Compare(xamlTag, xamlTag.Length, top, top.Length, top.Length, StringComparison.OrdinalIgnoreCase) == 0)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ComponentResourceManager.cs (1)
146if (string.Compare(key, 0, objectName, 0, objectName.Length, StringComparison.OrdinalIgnoreCase) != 0)
System.Configuration.ConfigurationManager (5)
System\Configuration\AppSettingsReader.cs (1)
87if (count > 0 && string.Compare(NullString, 0, val, count, len - 2 * count, StringComparison.Ordinal) != 0)
System\Configuration\StringUtil.cs (2)
21return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.Ordinal); 27return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System\Configuration\UrlPath.cs (2)
39if (string.Compare(dir, 0, subdir, 0, lDir, StringComparison.OrdinalIgnoreCase) != 0) 87if (string.Compare(path, 0, subpath, 0, lPath, StringComparison.OrdinalIgnoreCase) != 0)
System.Data.Common (2)
System\Data\DataTable.cs (2)
3720if (length >= 5 && string.Compare(current, length - 4, " ASC", 0, 4, StringComparison.OrdinalIgnoreCase) == 0) 3724else if (length >= 6 && string.Compare(current, length - 5, " DESC", 0, 5, StringComparison.OrdinalIgnoreCase) == 0)
System.Data.Odbc (1)
System\Data\Odbc\OdbcUtils.cs (1)
543if (0 == string.Compare(_sqlstatement, tempidx, tokenString, 0, tokenString.Length, StringComparison.OrdinalIgnoreCase))
System.Formats.Tar (1)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
88&& string.Compare(
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
88&& string.Compare(
System.Net.Http (2)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0;
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
265string.Compare(s, 1, input.Host, 0, input.Host.Length, StringComparison.OrdinalIgnoreCase) == 0)
System.Net.HttpListener (3)
System\Net\HttpListener.cs (2)
116if (string.Compare(uriPrefix, 0, "http://", 0, 7, StringComparison.OrdinalIgnoreCase) == 0) 120else if (string.Compare(uriPrefix, 0, "https://", 0, 8, StringComparison.OrdinalIgnoreCase) == 0)
System\Net\Managed\HttpListenerContext.Managed.cs (1)
56string.Compare(header, 0, AuthenticationTypes.Basic, 0, 5, StringComparison.OrdinalIgnoreCase) == 0;
System.Net.Mail (4)
System\Net\Mail\SmtpConnection.Auth.cs (4)
48if (string.Compare(extension, 0, AuthExtension, 0, 70else if (string.Compare(extension, 0, "dsn ", 0, 3, StringComparison.OrdinalIgnoreCase) == 0) 74else if (string.Compare(extension, 0, "STARTTLS", 0, 8, StringComparison.OrdinalIgnoreCase) == 0) 78else if (string.Compare(extension, 0, "SMTPUTF8", 0, 8, StringComparison.OrdinalIgnoreCase) == 0)
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
73return string.Compare(uri.AbsolutePath, 0, uriPrefix.AbsolutePath, 0, UriPrefixLength, StringComparison.OrdinalIgnoreCase) == 0;
System.Net.Requests (1)
System\Net\WebRequest.cs (1)
115if (string.Compare(Current.Prefix,
System.Net.WebProxy (1)
System\Net\WebProxy.NonWasm.cs (1)
44string.Compare(local, 0, hostString, dot, local.Length, StringComparison.OrdinalIgnoreCase) == 0;
System.Private.CoreLib (3)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
88&& string.Compare(
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
622string.Compare(ascii, iAfterLastDot, c_strAcePrefix, 0, c_strAcePrefix.Length, StringComparison.OrdinalIgnoreCase) != 0)
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
355if (length <= maxCompareLength && string.Compare(strEscValue, 0, str, index, length, StringComparison.Ordinal) == 0)
System.Private.Xml (1)
System\Xml\Schema\XdrBuilder.cs (1)
5520 == string.Compare(uri, 0, x_schema, 0, x_schema.Length, StringComparison.Ordinal) &&
System.Runtime.Caching (1)
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
52return 0 == string.Compare(s1, 0, s2, 0, s2.Length, StringComparison.OrdinalIgnoreCase);
System.ServiceModel.Primitives (2)
System\ServiceModel\Channels\TextMessageEncoder.cs (1)
145&& string.Compare("charset=", 0, contentType, semiColonIndex + 2, 8, StringComparison.OrdinalIgnoreCase) == 0)
System\ServiceModel\EndpointAddress.cs (1)
357return string.Compare(u1Path, 0, u2Path, 0, u1Len, ignoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal) == 0;
UIAutomationClient (1)
MS\Internal\Automation\WindowShowOrOpenTracker.cs (1)
74if (string.Compare(str, 0, _wcpClassName, 0, _wcpClassName.Length, StringComparison.OrdinalIgnoreCase) == 0)