320 references to Equals
Aspire.Dashboard (1)
Components\Pages\IPageWithSessionAndUrlState.cs (1)
103if (string.Equals(page.BasePath, page.NavigationManager.ToBaseRelativePath(page.NavigationManager.Uri)))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Aspire.Hosting.Tests (5)
Dcp\TestKubernetesService.cs (3)
50string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 127string.Equals(r.Metadata.NamespaceProperty ?? string.Empty, namespaceParameter ?? string.Empty) 191string.Equals(r.Metadata.NamespaceProperty, obj.Metadata.NamespaceProperty)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
WithUrlsTests.cs (1)
623if (string.Equals(notification.Snapshot.State?.Text, KnownResourceStates.Running))
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
BasicWebSite (1)
Controllers\TestingController.cs (1)
132if (!string.Equals(compareValue, Request.Cookies["AntiforgerySimulator"]))
Binding.Http.IntegrationTests (1)
NetHttpsBindingTests.4.1.0.cs (1)
38Assert.True(String.Equals(testString, result), String.Format("Expected result was {0}. Actual was {1}", testString, result));
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelShapeTests.4.1.0.cs (1)
57Assert.True(String.Equals(expectedMessageID, actualMessageID), String.Format("Expected Message ID was {0}. Actual was {1}", expectedMessageID, actualMessageID));
Client.ClientBase.IntegrationTests (13)
ChannelBaseTests.4.0.0.cs (5)
41Assert.True(String.Equals(echoText, result), 90Assert.True(String.Equals(expected, actual), 94Assert.True(String.Equals(expected, actual), 144Assert.True(String.Equals(expected, actual), 148Assert.True(String.Equals(expected, actual),
ClientBaseTests.4.0.0.cs (4)
565Assert.True(String.Equals(expected, actual), 569Assert.True(String.Equals(expected, actual), 619Assert.True(String.Equals(expected, actual), 623Assert.True(String.Equals(expected, actual),
MessageInspectorTests.4.4.0.cs (4)
47Assert.True(String.Equals(result1.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/Actual Error Description: {1}", expectedErrorDescription, result2.Result)); 54Assert.True(String.Equals(result2.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/nActual Error Description: {1}", expectedErrorDescription, result2.Result)); 96Assert.True(String.Equals(authorizationHeaderValue, accessToken), String.Format("Expected Authorization Header value: {0}/nActual Authorization Header value: {1}", accessToken, authorizationHeaderValue)); 97Assert.True(String.Equals(authTypeHeaderValue, authType.ToString()), String.Format("Expected AuthType Header value: {0}/nActual AuthType Header value: {1}", authType.ToString(), authTypeHeaderValue));
Client.ExpectedExceptions.IntegrationTests (9)
ExpectedExceptionTests.4.0.0.cs (4)
49Assert.True(String.Equals(exception.Message, exceptionMsg), String.Format("Expected exception message: {0}\nActual exception message: {1}", exceptionMsg, exception.Message)); 179Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message)); 214Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message)); 354Assert.True((String.Equals("test", results[i])),
ExpectedExceptionTests.4.1.0.cs (5)
273Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 274Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 326Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 327Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 604Assert.True((String.Equals("test", results[i])),
Client.TypedClient.IntegrationTests (11)
TypedProxyTests.4.0.0.cs (11)
139Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 202Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 252Assert.True(String.Equals(replyMessageAction, action + "Response"), 261Assert.True(String.Equals(actualResponse, expectedResponse), 316Assert.True(String.Equals(replyMessageAction, action + "Response"), 325Assert.True(String.Equals(actualResponse, expectedResponse), 381Assert.True(String.Equals(replyMessageAction, action + "Response"), 390Assert.True(String.Equals(actualResponse, expectedResponse), 482Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 523Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 556Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
ClientSample (1)
Tcp\TcpHubConnectionBuilderExtensions.cs (1)
26if (string.Equals(uri.Host, "localhost"))
CodeGenerator (1)
Program.cs (1)
64if (!string.Equals(content, existingContent))
Contract.Data.IntegrationTests (1)
DataContractTests.4.0.0.cs (1)
45Assert.True(String.Equals(response.StringValue, expectedStringValue), String.Format("Expected CompositeType.StringValue \"{0}\", actual was \"{1}\"",
Contract.Fault.IntegrationTests (2)
FaultExceptionTests.4.0.0.cs (2)
45Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message)); 79Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message));
Contract.Message.IntegrationTests (4)
MessageContractTests.4.4.0.cs (3)
43Assert.True(String.Equals(requestData.accountName, replyData.accountName), 51Assert.True(String.Equals(requestData.requestSingleValue, replyData.replySingleValue), 112Assert.True(String.Equals(testString, response.TestResult),
MessageTests.4.0.0.cs (1)
50Assert.True(string.Equals(actualResponse, expectedResponse),
Contract.Service.IntegrationTests (7)
ServiceContractTests.4.1.0.cs (7)
657Assert.True(string.Equals(result, "Hello " + echoString), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello " + echoString, result)); 736Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 739Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2), 826Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 829Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2), 917Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1), 920Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2),
CreateDefaultBuilderApp (1)
Program.cs (1)
29&& !string.Equals("KestrelEndPointSettingValue", endpointOptions.ConfigSection["KestrelEndPointSettingName"]))
CreateDefaultBuilderOfTApp (1)
Program.cs (1)
31&& !string.Equals("KestrelEndPointSettingValue", endpointOptions.ConfigSection["KestrelEndPointSettingName"]))
dotnet-svcutil-lib (8)
CodeDomFixup\ConfigToCode.cs (1)
314if (ctor.Parameters.Count > 0 && string.Equals(ctor.Parameters[0].Type.BaseType, typeof(InstanceContext).FullName))
FrameworkFork\Microsoft.Xml\Xml\Ref.cs (1)
20if (((object)strA != (object)strB) && string.Equals(strA, strB))
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (5)
211if (String.Equals(_nsdecls[declIndex].uri, uri) && _nsdecls[declIndex].scopeId == _scopeId) 315if (String.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 329if (String.Equals(_nsdecls[thisDecl].uri, uri)) 332if (String.Equals(LookupNamespace(prefix), uri)) 346if (String.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
324if (string.Equals(keyval[0], X509SubjectAlternativeNameConstants.Identifier))
Encoding.Encoders.IntegrationTests (2)
BinaryEncodingTests.4.0.0.cs (1)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
TextEncodingTests.4.0.0.cs (1)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Encoding.MessageVersion.IntegrationTests (7)
MessageVersionTests.4.0.0.cs (2)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
MessageVersionTests.cs (5)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 111Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 147Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 183Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
GenericHostWebSite (1)
Controllers\TestingController.cs (1)
118if (!string.Equals(compareValue, Request.Cookies["AntiforgerySimulator"]))
IIS.ShadowCopy.Tests (1)
ShadowCopyTests.cs (1)
423if (string.Equals(subdir.Name, ignoreDirectory))
Microsoft.AspNetCore.Analyzers (1)
OptionsFacts.cs (1)
16if (string.Equals(item.OptionsType.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), SymbolNames.MvcOptions.MetadataName) &&
Microsoft.AspNetCore.Authentication.Test (2)
CookieTests.cs (2)
1168var expectRenew = string.Equals("1", context.Request.Query["expectrenew"]); 1169var renew = string.Equals("1", context.Request.Query["renew"]);
Microsoft.AspNetCore.Components (1)
ParameterView.cs (1)
70if (string.Equals(entry.Name, parameterName))
Microsoft.AspNetCore.Components.Server.Tests (2)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (2)
41return string.Equals(closeMessage.Error, ((CloseMessage)y).Error); 155if (!string.Equals(left[i], right[i]))
Microsoft.AspNetCore.Components.Web (2)
Forms\InputRadioContext.cs (1)
34=> string.Equals(GroupName, groupName) ? this : ParentContext?.FindContextInAncestors(groupName);
Forms\Mapping\FormMappingScope.cs (1)
56else if (!string.Equals(Name, _cascadingValueSupplier.MappingScopeName))
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (2)
111if (string.Equals(fileExtension, ".gz") || string.Equals(fileExtension, ".br"))
Microsoft.AspNetCore.Cors.Test (3)
CorsMiddlewareTests.cs (3)
990Assert.Contains(httpContext.Items, item => string.Equals(item.Key as string, "__CorsMiddlewareWithEndpointInvoked")); 1014Assert.Contains(httpContext.Items, item => string.Equals(item.Key as string, "__CorsMiddlewareWithEndpointInvoked")); 1038Assert.DoesNotContain(httpContext.Items, item => string.Equals(item.Key as string, "__CorsMiddlewareWithEndpointInvoked"));
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
548Assert.Contains(directory, file => string.Equals(file.Name, expected));
Microsoft.AspNetCore.Html.Abstractions.Tests (1)
HtmlContentBuilderTest.cs (1)
269return other != null && string.Equals(_content, other._content);
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
133if (!string.Equals(purp, purpose))
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
63return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.AspNetCore.Mvc.Core.Test (2)
RedirectToRouteResultTest.cs (1)
110It.Is<UrlRouteContext>(routeContext => string.Equals(routeName, routeContext.RouteName))));
Routing\UrlHelperTest.cs (1)
118.Setup(mock => mock.GetVirtualPath(It.Is<VirtualPathContext>(c => string.Equals(c.RouteName, mockRouteName))))
Microsoft.AspNetCore.Mvc.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
32string.Equals(GetString(attributeX.Value), GetString(attributeY.Value)));
Microsoft.AspNetCore.Mvc.TagHelpers (2)
InputTagHelper.cs (2)
422if (string.Equals(inputType, "file") && 496if (string.Equals("text", inputType) &&
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
InputTagHelperTest.cs (1)
1787if (string.Equals(dataTypeName, TemplateRenderer.IEnumerableOfIFormFileName))
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
32string.Equals(GetString(attributeX.Value), GetString(attributeY.Value)));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Rendering\HtmlHelperFormTest.cs (3)
233string.Equals(context.Action, actionName) && 234string.Equals(context.Controller, controllerName) && 282string.Equals(context.RouteName, routeName) &&
Microsoft.AspNetCore.Razor.Runtime.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
32string.Equals(GetString(attributeX.Value), GetString(attributeY.Value)));
Microsoft.AspNetCore.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
32string.Equals(GetString(attributeX.Value), GetString(attributeY.Value)));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
482Assert.True(string.Equals("400", responseStatusCode), i.ToString("X2", CultureInfo.InvariantCulture)); 500Assert.True(string.Equals("400", responseStatusCode), i.ToString("X2", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HubConnectionTests.ConnectionLifecycle.cs (1)
229if (string.Equals(name, nameof(HubConnection.InvokeCoreAsync)))
TestHttpMessageHandler.cs (1)
164if (request.Method.Equals(method) && string.Equals(request.RequestUri.PathAndQuery, pathAndQuery))
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Internal\Protocol\TestHubMessageEqualityComparer.cs (2)
41return string.Equals(closeMessage.Error, ((CloseMessage)y).Error); 155if (!string.Equals(left[i], right[i]))
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (2)
129if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId)) 162if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
45if (!string.Equals(output.Trim('\'', '"', '\r', '\n', ' '), "linux"))
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.ClientResult.cs (2)
345if (string.Equals(protocol, "MessagePack")) 349else if (string.Equals(protocol, "Json"))
HubConnectionHandlerTests.cs (3)
499var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") && 529var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") && 580var exceptionLog = TestSink.Writes.Where(w => string.Equals(w.LoggerName, "Microsoft.AspNetCore.SignalR.HubConnectionHandler") &&
Microsoft.AspNetCore.SignalR.Tests.Utils (2)
TestClient.cs (2)
129if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId)) 162if (message is HubInvocationMessage hubInvocationMessage && !string.Equals(hubInvocationMessage.InvocationId, invocationId))
Microsoft.Cci.Extensions (2)
Traversers\DependencyTraverser.cs (1)
211return string.Equals(x.UniqueId(), y.UniqueId());
Traversers\ResolveAllReferencesTraverser.cs (1)
144return string.Equals(x.UniqueId(), y.UniqueId());
Microsoft.CodeAnalysis (8)
Diagnostic\LocalizableResourceString.FixedLocalizableString.cs (1)
44return fixedStr != null && string.Equals(_fixedString, fixedStr._fixedString);
InternalUtilities\StringOrdinalComparer.cs (1)
33return string.Equals(a, b);
RuleSet\RuleSetProcessor.cs (6)
209if (string.Equals(action, RuleActionWarningValue)) 213else if (string.Equals(action, RuleActionErrorValue)) 217else if (string.Equals(action, RuleActionInfoValue)) 221else if (string.Equals(action, RuleActionHiddenValue)) 225else if (string.Equals(action, RuleActionNoneValue)) 229else if (string.Equals(action, RuleActionDefaultValue) && allowDefault)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
65if (!string.Equals(Name, other.Name))
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractContextVariableArgumentProvider.cs (2)
155if (string.Equals(bestSymbol.Name, context.Parameter.Name)) 156return string.Equals(symbol.Name, context.Parameter.Name);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2369if (lastOldStartLine == oldStartLine && string.Equals(lastOldFilePath, oldMappedSpan.Path))
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\TokenUtilities.cs (1)
28if (!string.Equals(expectedToken, actualToken))
Microsoft.CodeAnalysis.VisualBasic (5)
Symbols\Source\LocalSymbol.vb (1)
622Return other IsNot Nothing AndAlso other._identifierToken.Equals(Me._identifierToken) AndAlso Equals(other._container, Me._container) AndAlso String.Equals(other.Name, Me.Name)
Symbols\TypeSymbolExtensions.vb (2)
1324If Not String.Equals(typeSymbol.Name, name) Then 1361If Not String.Equals(midNamespace?.Name, midNS) Then
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
132If String.Equals(Me._path, path) Then
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
157If String.Equals(Me._path, path) Then
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
33return string.Equals(a, b);
Microsoft.DotNet.Build.Tasks.Workloads (6)
CreateVisualStudioWorkload.wix.cs (3)
359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64))
Swix\SwixComponent.cs (1)
158ITaskItem? resourceItem = componentResources?.Where(r => string.Equals(r.ItemSpec, workload.Id)).FirstOrDefault();
WorkloadPackageBase.cs (2)
282if (string.IsNullOrEmpty(version.Prerelease) || version.Prerelease.Split('.').Any(s => string.Equals("ci", s) || string.Equals("dev", s)))
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
CreateVisualStudioWorkloadSetTests.cs (1)
63DirectoryRow versionDir = MsiUtils.GetAllDirectories(msi.ItemSpec).FirstOrDefault(d => string.Equals(d.Directory, "WorkloadSetVersionDir"));
Microsoft.DotNet.SignCheckLibrary (2)
Verification\ArchiveVerifier.cs (1)
172string aliasFileName = String.Equals(extension.ToLowerInvariant(), ".cab") ? Path.GetFileName(archiveEntry.RelativePath) :
Verification\Jar\JarManifestFile.cs (1)
56if (!String.Equals(entry.DigestValue, hashDigest))
Microsoft.Extensions.ApiDescription.Client (1)
MetadataSerializer.cs (1)
102if (string.Equals("Identity", keyAndValue[0]))
Microsoft.Extensions.DependencyModel (2)
Dependency.cs (2)
31return string.Equals(Name, other.Name) && string.Equals(Version, other.Version);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
54if (string.Equals(ManifestName, name))
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
153if (string.Equals(file, normPath))
Microsoft.Extensions.Identity.Core (3)
RoleValidator.cs (1)
59!string.Equals(await manager.GetRoleIdAsync(owner).ConfigureAwait(false), await manager.GetRoleIdAsync(role).ConfigureAwait(false)))
UserValidator.cs (2)
71!string.Equals(await manager.GetUserIdAsync(owner).ConfigureAwait(false), await manager.GetUserIdAsync(user).ConfigureAwait(false))) 99!string.Equals(await manager.GetUserIdAsync(owner).ConfigureAwait(false), await manager.GetUserIdAsync(user).ConfigureAwait(false)))
Microsoft.Extensions.Logging.Console (1)
JsonConsoleFormatter.cs (1)
87if (!string.Equals(message, stateMessage))
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
61return string.Equals(x.Key, y.Key) && object.Equals(x.Value, y.Value);
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
86if (!String.Equals(internedString, expectedString))
Microsoft.NET.StringTools.net35 (1)
WeakStringCacheInterner.cs (1)
86if (!String.Equals(internedString, expectedString))
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (5)
363Return other IsNot Nothing AndAlso String.Equals(Name, other.Name) AndAlso CallInfo.Equals(other.CallInfo) AndAlso _ignoreReturn = other._ignoreReturn 441Return other IsNot Nothing AndAlso String.Equals(Name, other.Name) AndAlso CallInfo.Equals(other.CallInfo) 708Return other IsNot Nothing AndAlso String.Equals(Name, other.Name) 767Return other IsNot Nothing AndAlso String.Equals(Name, other.Name) AndAlso _optimisticSet = other._optimisticSet AndAlso _rValueBase = other._rValueBase 800Return other IsNot Nothing AndAlso String.Equals(Name, other.Name)
Negotiate.Client (3)
Controllers\AuthTestController.cs (3)
66if (!string.Equals("Negotiate", authHeader)) 214if (!string.Equals("Negotiate", authHeader)) 251if (!string.Equals("Negotiate", authHeader))
Negotiate.Server (2)
Program.cs (1)
30if (string.Equals("true", context.Configuration["Persist"]))
Startup.cs (1)
28var persist = string.Equals("true", Configuration["Persist"]);
PresentationBuildTasks (4)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
3459isName = String.Equals(attributeName, propertyName); 3464isName = String.Equals(attributeName, "Name") && String.Equals(attribNamespaceURI, DefinitionNamespaceURI);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
623if (String.Equals(_nsDeclarations[thisDecl].Prefix, prefix))
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
PresentationFramework (3)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
356if (!String.Equals(oldValue, newValue))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (1)
81return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host);
System\Windows\Markup\XmlnsDictionary.cs (1)
623if (String.Equals(_nsDeclarations[thisDecl].Prefix, prefix))
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
80Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Security.TransportSecurity.IntegrationTests (10)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
78Assert.True(String.Equals(result, testString),
Https\HttpsTests.4.1.0.cs (4)
87success = string.Equals(result, testString); 126success = string.Equals(result, testString); 165success = string.Equals(result, testString); 204success = string.Equals(result, testString);
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (2)
72if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 149if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
Tcp\StreamingTests.4.1.0.cs (3)
278Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 319Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 360Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
274if (string.Equals(attribute.Key, "CommitHash"))
SignalRSamples (1)
Startup.cs (1)
64if (string.Equals(attribute.Key, "CommitHash"))
SocialSample (8)
Startup.cs (8)
304if (string.Equals(GoogleDefaults.AuthenticationScheme, currentAuthType) 305|| string.Equals(MicrosoftAccountDefaults.AuthenticationScheme, currentAuthType) 306|| string.Equals("IdentityServer", currentAuthType)) 355else if (string.Equals(FacebookDefaults.AuthenticationScheme, currentAuthType)) 470if (string.Equals(GoogleDefaults.AuthenticationScheme, currentAuthType)) 474else if (string.Equals(MicrosoftAccountDefaults.AuthenticationScheme, currentAuthType)) 478else if (string.Equals(FacebookDefaults.AuthenticationScheme, currentAuthType)) 482else if (string.Equals("IdentityServer", currentAuthType))
System.Collections.Immutable (6)
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_Full.cs (1)
27private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSingleChar.cs (1)
24private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSubstring.cs (1)
25private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSingleChar.cs (1)
24private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSubstring.cs (1)
25private protected override bool Equals(string? x, string? y) => string.Equals(x, y);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (1)
55private protected virtual bool Equals(string? x, string? y) => string.Equals(x, y);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReferenceConverter.cs (1)
51if (!string.Equals(text, s_none) && context != null)
System.Diagnostics.TraceSource (1)
System\Diagnostics\SourceFilter.cs (1)
24return string.Equals(_src, source);
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (2)
716private static bool IsIdFile(string file) => string.Equals(Path.GetFileName(file), "identity.dat"); 718private static bool IsInfoFile(string file) => string.Equals(Path.GetFileName(file), "info.dat");
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
44return other != null && string.Equals(IdnHost, other.IdnHost) && Port == other.Port;
System.Net.Security (2)
System\Net\Security\NegotiateStream.cs (2)
226!string.Equals(_context.Package, NegotiationInfoClass.NTLM) && // suppressing for NTLM since SSPI does not return correct value in the context flags. 788isNtlm = string.Equals(_context.Package, NegotiationInfoClass.NTLM);
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
298public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
48return string.Equals(x, y); 83public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (1)
60public override bool Equals(string? x, string? y) => string.Equals(x, y);
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
60return string.Equals(a, b); 68return string.Equals(sa, sb);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1035Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers.");
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (7)
182if (string.Equals(strAttrName, name)) 220if (!string.Equals(_tag, other._tag)) 224if (!string.Equals(_text, other._text)) 248if (!string.Equals(lhs, rhs)) 491if (string.Equals(strAttrName, name)) 517if (current != null && string.Equals(current.Tag, tag)) 532if (string.Equals(_tag, tag))
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
726public static bool operator ==(string? a, string? b) => Equals(a, b); 728public static bool operator !=(string? a, string? b) => !Equals(a, b);
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
445public override bool Equals(string? x, string? y) => string.Equals(x, y);
System.Private.Xml (9)
System\Xml\Ref.cs (1)
16if (((object?)strA != (object?)strB) && string.Equals(strA, strB))
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
1276if (string.Equals(c.XmlName, source)) 2057return source.LocalName == name && string.Equals(source.NamespaceURI, ns); 2062return xsiType.Name == name && string.Equals(xsiType.Namespace, defaultNamespace);
System\Xml\XmlNamespacemanager.cs (5)
198if (string.Equals(_nsdecls[declIndex].uri, uri) && _nsdecls[declIndex].scopeId == _scopeId) 311if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null) 327if (string.Equals(_nsdecls[thisDecl].uri, uri)) 330if (string.Equals(LookupNamespace(prefix), uri)) 346if (string.Equals(_nsdecls[thisDecl].prefix, prefix) && _nsdecls[thisDecl].uri != null)
System.Reflection.DispatchProxy (1)
src\libraries\Common\src\System\Reflection\Emit\IgnoreAccessChecksToAttributeBuilder.cs (1)
85.Single(f => string.Equals(f.Name, "AllowMultiple"));
System.Resources.Extensions (3)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (2)
60return string.Equals(a, b); 68return string.Equals(sa, sb);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1035Debug.Assert(!string.Equals(typeCode.ToString(), "LastPrimitive"), "Change ResourceTypeCode metadata order so LastPrimitive isn't what Enum.ToString prefers.");
System.Resources.Writer (1)
System\Resources\__FastResourceComparer.cs (1)
43return string.Equals(a, b);
System.Security.Claims (3)
System\Security\Claims\Claim.cs (3)
420if (string.Equals(_type, ClaimsIdentity.DefaultNameClaimType)) 424else if (string.Equals(_type, ClaimsIdentity.DefaultRoleClaimType)) 449else if (!string.Equals(_originalIssuer, ClaimsIdentity.DefaultIssuer))
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
193if (string.Equals(accessMethodOid, desc.AccessMethod))
System.ServiceModel.NetTcp.Tests (1)
Channels\TcpTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.tcp"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.tcp", element.Scheme));
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
344if (string.Equals(keyval[0], X509SubjectAlternativeNameConstants.Identifier))
System.ServiceModel.Primitives.Tests (22)
Channels\BehaviorExtensionTest.cs (2)
45Assert.True(String.Equals(testMessageBody, result), 79Assert.True(String.Equals(testMessageBody, result),
Channels\CommunicationObjectTest.cs (4)
322Assert.True(String.Equals(exceptionMessage, actualException.Message), 349Assert.True(String.Equals(exceptionMessage, actualException.Message), 376Assert.True(String.Equals(exceptionMessage, actualException.Message), 407Assert.True(String.Equals(exceptionMessage, actualException.Message),
Channels\CustomChannelTest.cs (7)
75Assert.True(String.Equals(testMessageBody, result), 172Assert.True(String.Equals(testMessageBody, result), 251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message), 306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message), 365Assert.True(String.Equals(testMessageBody, result), 471Assert.True(String.Equals(caughtException.Message, thrownException.Message), 725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
Channels\UnderstoodHeadersTest.cs (3)
36if (String.Equals(mhi.Name, "Action")) Assert.True(mhi.MustUnderstand); 38if (String.Equals(mhi.Name, "AlphaHeader")) Assert.False(mhi.MustUnderstand); 39if (String.Equals(mhi.Name, "BravoHeader")) Assert.False(mhi.MustUnderstand);
Description\OperationBehaviorTest.cs (3)
63if (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_NotSet_One))) 82if (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_Set_StyleSetTo_Rpc)) || (String.Equals(description.Name, nameof(IXmlTestingType.XmlSerializerFormatAttribute_NotSet_Two))))
ServiceModel\MessageContractTest.4.4.0.cs (3)
35Assert.True(String.Equals(name, attribute.Name), 215Assert.True(String.Equals(request.requestTestProperty, propertyValue), 293Assert.True(String.Equals(request.requestTestProperty, reply.requestTestProperty),
System.ServiceModel.UnixDomainSocket.Tests (1)
Channels\UnixDomainSocketTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.uds"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.uds", element.Scheme));
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
907if (!string.Equals(_bindingPath, value))
System.Windows.Forms (11)
System\Resources\ResXDataNode.cs (2)
400if (string.Equals(mimeTypeName, ResXResourceWriter.ByteArraySerializedObjectMimeType) 416if (!string.Equals(dataNodeInfo.MimeType, ResXResourceWriter.BinSerializedObjectMimeType))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
558if (value == _imageIndex.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\Labels\Label.cs (1)
467if (ImageKey == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
245if (value == _imageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
4713if (!string.Equals(text, EditTextBox.Text))
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
26if (!string.Equals(currentItem.ToString(), nameof(AutoCompleteSource.ListItems)))
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
554if (value == ImageIndexer.Key && !string.Equals(value, ImageList.Indexer.DefaultKey)) 937if (SelectedImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey)) 994if (StateImageIndexer.Key == value && !string.Equals(value, ImageList.Indexer.DefaultKey))
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
109Debug.Assert(string.Equals(
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
488if ((string.Equals(newField.Name, docField.Name)) && newField.Attributes == docField.Attributes && TypesEqual(newField.Type, docField.Type))
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
772if (valueAsString is null || string.Equals(typeName, valueAsString)) 874if (string.Equals(key, ResourceManagerPropertyName) || 875string.Equals(key, CultureInfoPropertyName) ||
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
186if (string.Equals(ToolboxFormat, allFormats[i]))
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
166if (string.Equals(anchor.Protocol, "about:")) 173Assert.True(string.Equals(anchor.Href, expectedLink), $"Expected next link to be {expectedLink} but it was {anchor.Href}."); 175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
166if (string.Equals(anchor.Protocol, "about:")) 173Assert.True(string.Equals(anchor.Href, expectedLink), $"Expected next link to be {expectedLink} but it was {anchor.Href}."); 175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
166if (string.Equals(anchor.Protocol, "about:")) 173Assert.True(string.Equals(anchor.Href, expectedLink), $"Expected next link to be {expectedLink} but it was {anchor.Href}."); 175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
166if (string.Equals(anchor.Protocol, "about:")) 173Assert.True(string.Equals(anchor.Href, expectedLink), $"Expected next link to be {expectedLink} but it was {anchor.Href}."); 175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
Templates.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
166if (string.Equals(anchor.Protocol, "about:")) 173Assert.True(string.Equals(anchor.Href, expectedLink), $"Expected next link to be {expectedLink} but it was {anchor.Href}."); 175if (!string.Equals(anchor.Protocol, "https:") || string.Equals(anchor.HostName, "localhost", StringComparison.OrdinalIgnoreCase))
UnitTests.Common (2)
TestHelpers.cs (2)
233MessagePartDescription descPart = desc.SingleOrDefault((d) => String.Equals(dataPart.Name, d.Name)); 248if (!String.Equals(desc.Name, data.Name))
xunit.console (4)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
68.Select(lib => compatibleRuntimes.Select(runtime => Tuple.Create(lib, lib.RuntimeAssemblyGroups.FirstOrDefault(libGroup => string.Equals(libGroup.Runtime, runtime)))) 82.Select(lib => compatibleRuntimes.Select(runtime => Tuple.Create(lib, lib.NativeLibraryGroups.FirstOrDefault(libGroup => string.Equals(libGroup.Runtime, runtime))))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Dependency.cs (2)
30return string.Equals(Name, other.Name) && string.Equals(Version, other.Version);