53 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.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)
parent\parent\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
110if (string.Compare(relativePath, areaEndIndex, AreaPagesRoot, 0, AreaPagesRoot.Length, 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)
213if (string.Compare(x, 0, y, 0, compareLength, StringComparison.Ordinal) == 0) 219return string.Compare(x, xExtIndex, y, yExtIndex, length, StringComparison.Ordinal); 247result = string.Compare(
Microsoft.Build (2)
Evaluation\Expander.PropertyExpander.cs (2)
328string.Compare(expression, startIndex, VstsDbDirectoryProperty, 0, VstsDbDirectoryProperty.Length, StringComparison.OrdinalIgnoreCase) == 0) 345string.Compare(expression, startIndex, RegistryPrefix, 0, RegistryPrefix.Length, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Build.Framework (3)
FileUtilities.cs (2)
1704if (string.Compare(strA, i, strB, i, length, StringComparison.OrdinalIgnoreCase) == 0) 1712if (string.Compare(slash1, i, slash2, i, length, StringComparison.OrdinalIgnoreCase) == 0)
Utilities\FileMatcher.cs (1)
3921if (string.Compare(
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\AssemblyResolution.cs (1)
205else if (0 == String.Compare(basePath, 0, AssemblyResolutionConstants.assemblyFoldersFromConfigSentinel, 0, AssemblyResolutionConstants.assemblyFoldersFromConfigSentinel.Length, StringComparison.OrdinalIgnoreCase))
AssemblyDependency\Reference.cs (1)
960String.Compare(directoryPath, 0, fullPath, 0, directoryPath.Length, StringComparison.OrdinalIgnoreCase) == 0;
AssemblyDependency\ResolveAssemblyReference.cs (1)
1956bool containsAssemblyFoldersExSentinel = String.Compare(location.SearchPath, 0, AssemblyResolutionConstants.assemblyFoldersExSentinel, 0, AssemblyResolutionConstants.assemblyFoldersExSentinel.Length, StringComparison.OrdinalIgnoreCase) == 0;
AssemblyDependency\TaskItemSpecFilenameComparer.cs (1)
70int fileComparison = string.Compare(xItemSpec,
AssignTargetPath.cs (1)
152if (String.Compare(fullRootPathString, 0, itemSpecFullFileNamePath, 0, fullRootPathString.Length, StringComparison.CurrentCultureIgnoreCase) == 0)
ListOperators\FindUnderPath.cs (1)
122if (String.Compare(conePath, 0, fullPath, 0, conePathLength, StringComparison.OrdinalIgnoreCase) == 0)
parent\Shared\AssemblyFolders\AssemblyFoldersEx.cs (2)
378if (String.Compare(version, 0, targetRuntimeVersion, 0, targetRuntimeVersion.Length, StringComparison.OrdinalIgnoreCase) == 0) 409if (String.Compare(version, 0, targetRuntimeVersion, 0, targetRuntimeVersion.Length, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.Build.Utilities.Core (2)
parent\Shared\AssemblyFolders\AssemblyFoldersEx.cs (2)
378if (String.Compare(version, 0, targetRuntimeVersion, 0, targetRuntimeVersion.Length, StringComparison.OrdinalIgnoreCase) == 0) 409if (String.Compare(version, 0, targetRuntimeVersion, 0, targetRuntimeVersion.Length, StringComparison.OrdinalIgnoreCase) == 0)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeSymbolExtensions.vb (1)
1278Return (name.Length = length) AndAlso (String.Compare(name, 0, namespaceName, offset, length, comparison) = 0)
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)
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Interaction.vb (2)
164If String.Compare(appTitle, 0, Title, 0, titleLength, StringComparison.OrdinalIgnoreCase) = 0 Then 183If String.Compare(Right(appTitle, titleLength), 0, Title, 0, titleLength, StringComparison.OrdinalIgnoreCase) = 0 Then
NuGet.LibraryModel (7)
LibraryDependencyTargetUtils.cs (7)
79if ("package".Length == flag.Length && string.Compare(flag.String, flag.Start, "package", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 83else if ("project".Length == flag.Length && string.Compare(flag.String, flag.Start, "project", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 87else if ("externalproject".Length == flag.Length && string.Compare(flag.String, flag.Start, "externalproject", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 91else if ("reference".Length == flag.Length && string.Compare(flag.String, flag.Start, "reference", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 95else if ("assembly".Length == flag.Length && string.Compare(flag.String, flag.Start, "assembly", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 99else if ("winmd".Length == flag.Length && string.Compare(flag.String, flag.Start, "winmd", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0) 103else if ("all".Length == flag.Length && string.Compare(flag.String, flag.Start, "all", 0, flag.Length, StringComparison.OrdinalIgnoreCase) == 0)
NuGet.Packaging (1)
ContentModel\Infrastructure\Parser.cs (1)
136if (string.Compare(path, startIndex, _pattern, _start, _length, 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.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
84&& string.Compare(
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
84&& string.Compare(
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
84&& string.Compare(
System.Net.Requests (1)
System\Net\WebRequest.cs (1)
115if (string.Compare(Current.Prefix,
System.Private.CoreLib (1)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (1)
84&& string.Compare(
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)