538 implementations of Equals
Aspire.Dashboard (2)
Otlp\Model\OtlpInstrument.cs (1)
136public bool Equals(ReadOnlyMemory<KeyValuePair<string, string>> x, ReadOnlyMemory<KeyValuePair<string, string>> y)
Otlp\Model\OtlpResource.cs (1)
324public bool Equals(KeyValuePair<string, string>[]? x, KeyValuePair<string, string>[]? y)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Aspire.Hosting.Azure.AppContainers (1)
src\Shared\ResourceNameComparer.cs (1)
10public bool Equals(IResource? x, IResource? y)
Aspire.Hosting.Azure.AppService (1)
src\Shared\ResourceNameComparer.cs (1)
10public bool Equals(IResource? x, IResource? y)
Aspire.Hosting.Docker (1)
src\Shared\ResourceNameComparer.cs (1)
10public bool Equals(IResource? x, IResource? y)
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Aspire.Hosting.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
BuildActionTelemetryTable (1)
Program.cs (1)
358public bool Equals(Type? x, Type? y)
BuildValidator (1)
FileNameEqualityComparer.cs (1)
21public bool Equals(FileInfo? x, FileInfo? y)
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Core\SecureStringHasher.cs (1)
48public bool Equals(String x, String y)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2551public bool Equals(TypeHandleRef x, TypeHandleRef y)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (1)
142public bool Equals(Claim claim1, Claim claim2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
238public bool Equals(CodeTypeReference x, CodeTypeReference y)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
632bool IEqualityComparer<MessageDescription>.Equals(MessageDescription x, MessageDescription y)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
904public bool Equals(QName x, QName y)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\InMemoryNonceCache.cs (1)
154public bool Equals(byte[] x, byte[] y)
GenerateDocumentationAndConfigFiles (14)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Metrics (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Metrics.Legacy (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
49bool IEqualityComparer<T>.Equals(T x, T y)
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\AmbiguousRoutePatternComparer.cs (1)
19public bool Equals(RoutePatternTree x, RoutePatternTree y)
Microsoft.AspNetCore.Components (4)
Rendering\SimplifiedStringHashComparer.cs (1)
20public bool Equals(string? x, string? y)
Routing\QueryParameterNameComparer.cs (1)
15public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y)
Routing\RouteTableFactory.cs (1)
302public bool Equals(InboundRouteEntry? x, InboundRouteEntry? y)
src\Http\Routing\src\RouteValueEqualityComparer.cs (1)
31public new bool Equals(object? x, object? y)
Microsoft.AspNetCore.Components.Server.Tests (1)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (1)
17public bool Equals(HubMessage x, HubMessage y)
Microsoft.AspNetCore.Components.Tests (1)
Routing\TemplateParserTests.cs (1)
287public bool Equals(RoutePattern x, RoutePattern y)
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
267public bool Equals(char x, char y)
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
303public bool Equals(IFileInfo? x, IFileInfo? y) => string.Equals(x?.Name, y?.Name, _fsComparison);
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlAssert.cs (1)
137public bool Equals(T x, T y)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ConverterTests\JsonElementComparer.cs (1)
24public bool Equals(JsonElement x, JsonElement y)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
303public bool Equals(IFileInfo? x, IFileInfo? y) => string.Equals(x?.Name, y?.Name, _fsComparison);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\EndpointDelegateComparer.cs (1)
12public bool Equals(Endpoint a, Endpoint b) => Endpoint.SignatureEquals(a, b);
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (1)
14public bool Equals(Endpoint x, Endpoint y) => OrdinalComparer.Equals(x.HttpMethod, y.HttpMethod);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
178public bool Equals(Claim x, Claim y)
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
61public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
716public bool Equals(PropertyKey x, PropertyKey y)
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\StringArrayComparer.cs (1)
19public bool Equals(string[]? x, string[]? y)
Routing\AttributeRoute.cs (1)
250public bool Equals(RouteInfo? x, RouteInfo? y)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsMetadataProviderTest.cs (1)
1743public bool Equals(KeyValuePair<EnumGroupAndName, string> x, KeyValuePair<EnumGroupAndName, string> y)
ModelValidationResultComparer.cs (1)
16public bool Equals(ModelValidationResult x, ModelValidationResult y)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
20public bool Equals(TagHelperAttribute attributeX, TagHelperAttribute attributeY)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
20public bool Equals(TagHelperAttribute attributeX, TagHelperAttribute attributeY)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
LambdaExpressionComparer.cs (1)
14public bool Equals(LambdaExpression lambdaExpression1, LambdaExpression lambdaExpression2)
MemberExpressionCacheKeyComparer.cs (1)
10public bool Equals(MemberExpressionCacheKey x, MemberExpressionCacheKey y)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\AddOpenApiInvocationComparer.cs (1)
11public bool Equals(AddOpenApiInvocation? x, AddOpenApiInvocation? y)
Microsoft.AspNetCore.RateLimiting (1)
DefaultKeyTypeEqualityComparer.cs (1)
10public bool Equals(DefaultKeyType x, DefaultKeyType y)
Microsoft.AspNetCore.Razor.Runtime.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
20public bool Equals(TagHelperAttribute attributeX, TagHelperAttribute attributeY)
Microsoft.AspNetCore.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
20public bool Equals(TagHelperAttribute attributeX, TagHelperAttribute attributeY)
Microsoft.AspNetCore.Routing (3)
DecisionTree\DecisionCriterionValueEqualityComparer.cs (1)
15public bool Equals(DecisionCriterionValue x, DecisionCriterionValue y)
Matching\EndpointComparer.cs (1)
75public bool Equals(Endpoint? x, Endpoint? y)
RouteValueEqualityComparer.cs (1)
31public new bool Equals(object? x, object? y)
Microsoft.AspNetCore.Routing.Tests (3)
Patterns\RoutePatternParserTest.cs (2)
642public bool Equals(RoutePattern x, RoutePattern y) 736public bool Equals(RoutePatternParameterPolicyReference x, RoutePatternParameterPolicyReference y)
Template\TemplateParserTests.cs (1)
811public bool Equals(RouteTemplate x, RouteTemplate y)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\TestHubMessageEqualityComparer.cs (1)
17public bool Equals(HubMessage x, HubMessage y)
Microsoft.Build.Framework (1)
MSBuildNameIgnoreCaseComparer.cs (1)
32public bool Equals(string x, string y)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.Cci.Extensions (6)
Comparers\StringKeyComparer.cs (1)
26public bool Equals(T x, T y)
Experimental\APIClosureTypeReferenceVisitor.cs (1)
73public bool Equals(IAssemblyReference x, IAssemblyReference y)
Experimental\TypeReferenceSearcher.cs (1)
38public bool Equals(TypeReferenceDependency x, TypeReferenceDependency y)
Experimental\TypeReferenceVisitor.cs (1)
73public bool Equals(IAssemblyReference x, IAssemblyReference y)
Traversers\DependencyTraverser.cs (1)
209public bool Equals(T x, T y)
Traversers\ResolveAllReferencesTraverser.cs (1)
142public bool Equals(IReference x, IReference y)
Microsoft.CodeAnalysis (29)
Collections\ByteSequenceComparer.cs (2)
107bool IEqualityComparer<byte[]>.Equals(byte[]? x, byte[]? y) 117bool IEqualityComparer<ImmutableArray<byte>>.Equals(ImmutableArray<byte> x, ImmutableArray<byte> y)
CommandLine\AnalyzerConfigSet.cs (1)
68public bool Equals(List<Section>? x, List<Section>? y)
CommandLine\SarifDiagnosticComparer.cs (1)
37public bool Equals(DiagnosticDescriptor? x, DiagnosticDescriptor? y)
Diagnostic\CommonDiagnosticComparer.cs (1)
18public bool Equals(Diagnostic? x, Diagnostic? y)
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
18public bool Equals(AdditionalText? x, AdditionalText? y)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
431public bool Equals(TExtension? x, TExtension? y) => object.Equals(x?.GetType(), y?.GetType());
FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
InternalUtilities\CharMemoryEqualityComparer.cs (1)
19public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) => x.Span.SequenceEqual(y.Span);
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
InternalUtilities\StringOrdinalComparer.cs (1)
25bool IEqualityComparer<string>.Equals(string? a, string? b)
MetadataReader\PEModule.cs (1)
800public bool Equals(NamespaceDefinitionHandle x, NamespaceDefinitionHandle y)
PEWriter\MemberRefComparer.cs (1)
20public bool Equals(ITypeMemberReference? x, ITypeMemberReference? y)
PEWriter\MetadataWriter.cs (1)
4361bool IEqualityComparer<(ImmutableArray<byte>, bool)>.Equals((ImmutableArray<byte>, bool) x, (ImmutableArray<byte>, bool) y)
PEWriter\MetadataWriter.PortablePdb.cs (1)
42public bool Equals(IImportScope x, IImportScope y)
PEWriter\MethodSpecComparer.cs (1)
20public bool Equals(IGenericMethodInstanceReference? x, IGenericMethodInstanceReference? y)
PEWriter\SymbolEquivalentEqualityComparer.cs (2)
22public bool Equals(IReference? x, IReference? y) 57public bool Equals(INamespace? x, INamespace? y)
PEWriter\TypeSpecComparer.cs (1)
19public bool Equals(ITypeReference? x, ITypeReference? y)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
575public bool Equals(MetadataReference? x, MetadataReference? y)
SourceGeneration\UserFunction.cs (1)
35public bool Equals(T? x, T? y)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
31public bool Equals(AttributeData attr1, AttributeData attr2) 112public bool Equals(TypedConstant x, TypedConstant y) 143public bool Equals(KeyValuePair<string, TypedConstant> pair1, KeyValuePair<string, TypedConstant> pair2)
Symbols\SymbolEqualityComparer.cs (1)
50public bool Equals(ISymbol? x, ISymbol? y)
Syntax\SyntaxTreeComparer.cs (1)
16public bool Equals(SyntaxTree? x, SyntaxTree? y)
Text\SourceTextComparer.cs (1)
14public bool Equals(SourceText? x, SourceText? y)
Microsoft.CodeAnalysis.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.CodeAnalysis.BannedApiAnalyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
107bool IEqualityComparer<ISymbol>.Equals(ISymbol? x, ISymbol? y)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Operators.cs (1)
3769public bool Equals(MethodSymbol x, MethodSymbol y)
Binder\DecisionDagBuilder.cs (1)
1947public bool Equals(DagState? x, DagState? y)
Binder\Imports.cs (1)
215bool IEqualityComparer<NamespaceOrTypeAndUsingDirective>.Equals(NamespaceOrTypeAndUsingDirective x, NamespaceOrTypeAndUsingDirective y)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
254public bool Equals(MethodSymbol? x, MethodSymbol? y)
BoundTree\UnboundLambda.cs (1)
1439public bool Equals([AllowNull] (NamedTypeSymbol Type, bool IsExpressionTree) x, [AllowNull] (NamedTypeSymbol Type, bool IsExpressionTree) y)
Compilation\CSharpCompilation.cs (1)
2492public bool Equals((ImmutableArray<byte> ContentHash, int Position) x, (ImmutableArray<byte> ContentHash, int Position) y)
FlowAnalysis\NullableWalker.cs (2)
13475public bool Equals((NullabilityInfo info, TypeSymbol? type) x, (NullabilityInfo info, TypeSymbol? type) y) 13493public bool Equals((BoundNode? expr, Symbol symbol) x, (BoundNode? expr, Symbol symbol) y)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
97public bool Equals((TypeSymbol? constrainedToTypeOpt, TypeSymbol delegateType, MethodSymbol targetMethod) x, (TypeSymbol? constrainedToTypeOpt, TypeSymbol delegateType, MethodSymbol targetMethod) y)
Symbols\ConversionSignatureComparer.cs (1)
27public bool Equals(MethodSymbol member1, MethodSymbol member2)
Symbols\MemberSignatureComparer.cs (1)
390public bool Equals(Symbol? member1, Symbol? member2)
Symbols\TypeSymbol.cs (1)
2378public bool Equals(Symbol x, Symbol y)
Syntax\SyntaxKindEqualityComparer.cs (1)
13public bool Equals(SyntaxKind x, SyntaxKind y)
Utilities\ContentHashComparer.cs (1)
19public bool Equals(ReadOnlyMemory<byte> x, ReadOnlyMemory<byte> y)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
31public bool Equals(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? x, ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? y)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
15877public bool Equals(SyntaxReference x, SyntaxReference y)
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
129public bool Equals(CompletionItem? x, CompletionItem? y)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
274bool IEqualityComparer<IParameterSymbol>.Equals(IParameterSymbol? x, IParameterSymbol? y)
ConvertToExtension\ExtensionMethodEqualityComparer.cs (3)
41public bool Equals(AttributeData? x, AttributeData? y) 66public bool Equals(ITypeParameterSymbol? x, ITypeParameterSymbol? y) 117public bool Equals(ExtensionMethodInfo x, ExtensionMethodInfo y)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\ExpressionSimplifier.CandidateSymbolEqualityComparer.cs (1)
24public bool Equals(ISymbol x, ISymbol y)
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.EditorFeatures (5)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
93bool IEqualityComparer<DiagnosticDescriptor>.Equals(DiagnosticDescriptor x, DiagnosticDescriptor y)
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
116public bool Equals(NamingRule left, NamingRule right) 137public bool Equals(NamingStyle left, NamingStyle right) 162public bool Equals(SymbolSpecification? left, SymbolSpecification? right)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
14public bool Equals(TagSpan<TTag>? x, TagSpan<TTag>? y)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\SymbolEquivalenceComparerTests.cs (1)
1889public bool Equals(IAssemblySymbol x, IAssemblySymbol y)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
NameComparer.cs (1)
17public bool Equals(Name x, Name y)
ParameterComparer.cs (1)
16public bool Equals(ParameterSignature x, ParameterSignature y)
TypeComparer.cs (1)
17public bool Equals(TypeSignature x, TypeSignature y)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
ResultProviderTestBase.cs (1)
543bool IEqualityComparer<DkmCustomUIVisualizerInfo>.Equals(DkmCustomUIVisualizerInfo x, DkmCustomUIVisualizerInfo y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.CodeAnalysis.Features (17)
AddImport\AbstractAddImportFeatureService.cs (1)
436bool IEqualityComparer<PortableExecutableReference>.Equals(PortableExecutableReference? x, PortableExecutableReference? y)
CodeLens\LocationComparer.cs (1)
17public bool Equals(Location x, Location y)
Completion\CompletionService.ProviderManager.cs (1)
223bool IEqualityComparer<ImmutableHashSet<string>>.Equals([AllowNull] ImmutableHashSet<string> x, [AllowNull] ImmutableHashSet<string> y)
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
223public bool Equals(SymbolAndSelectionInfo x, SymbolAndSelectionInfo y)
Completion\Providers\UnionCompletionItemComparer.cs (1)
19public bool Equals(CompletionItem? x, CompletionItem? y)
Diagnostics\Service\ChecksumAndAnalyzersEqualityComparer.cs (1)
18public bool Equals((Checksum checksum, ImmutableArray<DiagnosticAnalyzer> analyzers) x, (Checksum checksum, ImmutableArray<DiagnosticAnalyzer> analyzers) y)
Diagnostics\Service\DiagnosticAnalyzerComparer.cs (1)
18public bool Equals(DiagnosticAnalyzer? x, DiagnosticAnalyzer? y)
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
219public bool Equals(Diagnostic? x, Diagnostic? y)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2514public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y) 4181public bool Equals([AllowNull] SemanticEditInfo x, [AllowNull] SemanticEditInfo y) 6918public bool Equals(TypedConstant x, TypedConstant y) 6937public bool Equals(KeyValuePair<string, TypedConstant> x, KeyValuePair<string, TypedConstant> y)
EditAndContinue\RunningProjectOptions.cs (1)
71public bool Equals((string path, string? tfm) x, (string path, string? tfm) y)
NavigateTo\NavigateToSearchResultComparer.cs (1)
27public bool Equals(INavigateToSearchResult? x, INavigateToSearchResult? y)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
432public bool Equals((IPropertySymbol property, ReferenceLocation location) x, (IPropertySymbol property, ReferenceLocation location) y)
Shared\Utilities\LinkedFilesSymbolEquivalenceComparer.cs (1)
18public bool Equals(ISymbol? x, ISymbol? y)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
107bool IEqualityComparer<ISymbol>.Equals(ISymbol? x, ISymbol? y)
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LoadedProject.cs (1)
304public bool Equals(DocumentFileInfo? x, DocumentFileInfo? y)
HostWorkspace\ProjectToLoad.cs (1)
18public bool Equals(ProjectToLoad? x, ProjectToLoad? y)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
452public bool Equals([AllowNull] ImmutableArray<CharacterSetModificationRule> x, [AllowNull] ImmutableArray<CharacterSetModificationRule> y)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CodeAnalysis.PublicApiAnalyzers (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
AbstractResxGenerator.cs (1)
284public bool Equals(ImmutableDictionary<TKey, TValue>? x, ImmutableDictionary<TKey, TValue>? y)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Microsoft.CodeAnalysis.Test.Utilities (7)
Assert\AssertEx.cs (2)
65bool IEqualityComparer<T>.Equals(T x, T y) 884public bool Equals(string left, string right) => left.Trim() == right.Trim();
Assert\AssertXml.cs (2)
217public bool Equals(XElement element1, XElement element2) 242public bool Equals(XElement element1, XElement element2)
InstrumentationChecker.cs (1)
413public bool Equals(string expected, string actual)
Mocks\TestEqualityComparer.cs (1)
15public bool Equals(T? x, T? y)
SourceGeneration\LambdaComparer.cs (1)
22public bool Equals(T? x, T? y) => _equal(x, y);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
Microsoft.CodeAnalysis.UnitTests (20)
Collections\BadHasher.cs (1)
28public bool Equals(T? x, T? y)
Collections\EverythingEqual.cs (1)
34public bool Equals(T? x, T? y)
Collections\Extensions\EnumerableExtensionsTests.cs (2)
71public bool Equals(int x, int y) => Math.Abs(x) == Math.Abs(y); 167public bool Equals(T x, T y) => _equals(x, y);
Collections\Extensions\ImmutableArrayExtensionsTests.cs (2)
127bool IEqualityComparer<int>.Equals(int x, int y) 552public bool Equals(T x, T y) => _equals(x, y);
Collections\Extensions\ListExtensionsTests.cs (1)
21public bool Equals(T x, T y) => _equals(x, y);
Collections\HashSet\TestingTypes.cs (9)
25public bool Equals(int x, int y) 92public bool Equals(int x, int y) 111public bool Equals(int x, int y) 142public bool Equals(int x, int y) 161public bool Equals(int x, int y) 232public bool Equals(int x, int y) 251public bool Equals(SimpleInt x, SimpleInt y) 386public bool Equals(T? x, T? y) 405public bool Equals(T? x, T? y) => _comparer.Equals(x, y);
Collections\ImmutableSegmentedHashSetBuilderTest.cs (1)
363public bool Equals(int x, int y) => x >> 1 == y >> 1;
Collections\ImmutableSegmentedListTest.cs (1)
951public bool Equals(Person x, Person y)
Collections\IndexOfTests.cs (1)
168public bool Equals(int x, int y)
Text\TextChangeTests.cs (1)
280public bool Equals(TextLine x, TextLine y)
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_XmlLiterals.vb (1)
588Private Function IEqualityComparer_Equals(x As XmlName, y As XmlName) As Boolean Implements IEqualityComparer(Of XmlName).Equals
Declarations\SingleNamespaceDeclaration.vb (1)
62Private Shadows Function Equals(decl1 As SingleNamespaceDeclaration, decl2 As SingleNamespaceDeclaration) As Boolean Implements IEqualityComparer(Of SingleNamespaceDeclaration).Equals
Symbols\EventSignatureComparer.vb (1)
109Public Overloads Function Equals(event1 As EventSymbol, event2 As EventSymbol) As Boolean _
Symbols\MethodSignatureComparer.vb (1)
232Public Overloads Function Equals(method1 As MethodSymbol, method2 As MethodSymbol) As Boolean _
Symbols\PropertySignatureComparer.vb (1)
92Public Overloads Function Equals(prop1 As PropertySymbol, prop2 As PropertySymbol) As Boolean _
Symbols\TypeSymbol.vb (1)
760Public Overloads Function Equals(x As Symbol, y As Symbol) As Boolean Implements IEqualityComparer(Of Symbol).Equals
Microsoft.CodeAnalysis.Workspaces (19)
FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs (1)
19public bool Equals(ISymbol? x, ISymbol? y)
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
83public bool Equals(ImmutableArray<ITypeSymbol> x, ImmutableArray<ITypeSymbol> y)
Shared\Extensions\INamespaceSymbolExtensions.Comparer.cs (1)
15public bool Equals(INamespaceSymbol? x, INamespaceSymbol? y)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
48public bool Equals(DocumentKey x, DocumentKey y)
Workspace\Solution\SolutionState.CachingFilePathComparer.cs (1)
48public bool Equals(string? x, string? y)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.AnalyzerReferencePathComparer.cs (1)
21public bool Equals(AnalyzerReference? x, AnalyzerReference? y)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\CharMemoryEqualityComparer.cs (1)
19public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) => x.Span.SequenceEqual(y.Span);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
25bool IEqualityComparer<string>.Equals(string? a, string? b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderEquivalence.cs (1)
57public bool Equals(ICSharpBinder x, ICSharpBinder y) => x.IsEquivalentTo(y);
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
412public bool Equals(BuildEventContext x, BuildEventContext y) =>
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AssetComparer.cs (1)
11public bool Equals(Asset obj1, Asset obj2)
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
49bool IEqualityComparer<T>.Equals(T x, T y)
Microsoft.DotNet.SignTool (2)
src\ByteSequenceComparer.cs (2)
78bool IEqualityComparer<byte[]>.Equals(byte[] x, byte[] y) 88bool IEqualityComparer<ImmutableArray<byte>>.Equals(ImmutableArray<byte> x, ImmutableArray<byte> y)
Microsoft.DotNet.XUnitAssert.Tests (25)
AsyncCollectionAssertsTests.cs (7)
348 public bool Equals(int x, int y) => true; 533 public bool Equals(int x, int y) => false; 828 public bool Equals(int x, int y) => answer; 846 public bool Equals(EnumerableItem? x, EnumerableItem? y) => 893 public bool Equals(int x, int y) => 1215 public bool Equals(int x, int y) => answer; 1252 public bool Equals(int x, int y) =>
CollectionAssertsTests.cs (10)
382 public bool Equals(int x, int y) => true; 611 public bool Equals(int x, int y) => false; 906 public bool Equals(EnumerableItem? x, EnumerableItem? y) => 1069 public bool Equals(int x, int y) => answer; 1086 public bool Equals(EnumerableItem? x, EnumerableItem? y) => 1123 public bool Equals(int x, int y) => 1585 public bool Equals( 1799 public bool Equals(int x, int y) => answer; 1823 public bool Equals(int x, int y) => 2252 public bool Equals(
EqualityAssertsTests.cs (8)
98 public bool Equals(T? x, T? y) => result; 120 public bool Equals(int x, int y) => 143 public bool Equals(IEnumerable<int>? x, IEnumerable<int>? y) => 1064 public bool Equals(IEnumerable? x, IEnumerable? y) 2382 public bool Equals(T? x, T? y) => result; 2404 public bool Equals(int x, int y) => 2427 public bool Equals(IEnumerable<int>? x, IEnumerable<int>? y) => 2450 public bool Equals(string? x, string? y) =>
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
ScenarioRunResultTests.cs (7)
297public bool Equals(ChatMessage? x, ChatMessage? y) 308public bool Equals(ChatResponse? x, ChatResponse? y) 321public bool Equals(EvaluationMetricInterpretation? x, EvaluationMetricInterpretation? y) 332public bool Equals(EvaluationContext? x, EvaluationContext? y) 360public bool Equals(AIContent? x, AIContent? y) 383public bool Equals(EvaluationDiagnostic? x, EvaluationDiagnostic? y) 395public bool Equals(ChatTurnDetails? x, ChatTurnDetails? y) =>
Microsoft.Extensions.DependencyModel (1)
DependencyContext.cs (1)
84public bool Equals(T? x, T? y)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ByteArrayEqualityComparer.cs (1)
11public bool Equals(byte[]? x, byte[]? y)
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
148public bool Equals(KeyValuePair<Type, object> x, KeyValuePair<Type, object> y)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
FileInfoComparer.cs (1)
13public bool Equals(IFileInfo x, IFileInfo y)
Microsoft.Extensions.Http.Resilience (1)
Internal\HttpKey.cs (1)
16public bool Equals(HttpKey x, HttpKey y) => StringComparer.Ordinal.Equals(x.Name, y.Name);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider.ImmutableArrayValueComparer.cs (1)
17public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
Microsoft.Extensions.Primitives (1)
StringSegmentComparer.cs (1)
52public bool Equals(StringSegment x, StringSegment y)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
59public bool Equals(KeyValuePair<string, object> x, KeyValuePair<string, object> y)
Microsoft.Extensions.Telemetry (1)
Buffering\StringifyComprarer.cs (1)
11public bool Equals(KeyValuePair<string, object?> x, KeyValuePair<string, object?> y)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Extensions\IncrementalValuesProviderExtensions.cs (1)
96public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
Models\ValidatableTypeComparer.cs (1)
13public bool Equals(ValidatableType? x, ValidatableType? y)
Microsoft.Interop.ComInterfaceGenerator (3)
ComInterfaceInfo.cs (1)
182public bool Equals((ComInterfaceInfo, INamedTypeSymbol) x, (ComInterfaceInfo, INamedTypeSymbol) y) => SymbolEqualityComparer.Default.Equals(x.Item2, y.Item2);
Comparers.cs (2)
38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 60public bool Equals((T, U) x, (T, U) y)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Comparers.cs (3)
42public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 64public bool Equals((T, U) x, (T, U) y) 90public bool Equals((T, U, V, W) x, (T, U, V, W) y)
Microsoft.Interop.LibraryImportGenerator (2)
Comparers.cs (2)
38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 60public bool Equals((T, U) x, (T, U) y)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Comparers.cs (2)
38public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y) 60public bool Equals((T, U) x, (T, U) y)
Microsoft.Interop.SourceGeneration (2)
SyntaxEquivalentComparer.cs (2)
13public bool Equals(SyntaxNode x, SyntaxNode y) 27public bool Equals(SyntaxToken x, SyntaxToken y)
Microsoft.Maui (1)
HotReload\HotReloadExtensions.cs (1)
60 public bool Equals(MethodInfo? g1, MethodInfo? g2) => g1?.MethodHandle == g2?.MethodHandle;
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
21 public bool Equals(TypeReference x, TypeReference y)
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
773 public bool Equals(Compilation x, Compilation y)
Microsoft.ML.AutoML (1)
AutoMLExperiment\TrialResult.cs (1)
37public bool Equals(TrialResult x, TrialResult y)
Microsoft.ML.Core (1)
Data\ReadOnlyMemoryUtils.cs (1)
261public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y)
Microsoft.ML.CpuMath.UnitTests (2)
UnitTests.cs (2)
1004public bool Equals(float a, float b) 1017public bool Equals(float a, float b)
Microsoft.ML.Data (4)
Commands\TypeInfoCommand.cs (1)
56public bool Equals(ISet<InternalDataKind> x, ISet<InternalDataKind> y)
Transforms\Hashing.cs (2)
1542public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) => x.Span.SequenceEqual(y.Span); 1561public bool Equals(KeyValuePair<int, T> x, KeyValuePair<int, T> y)
Transforms\InvertHashUtils.cs (1)
134public bool Equals(Pair x, Pair y)
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
412public bool Equals(Parameter x, Parameter y)
Microsoft.ML.Tokenizers (1)
Utils\ByteArrayComparer.cs (1)
15public bool Equals(ReadOnlyMemory<byte> x, ReadOnlyMemory<byte> y) =>
Microsoft.VisualStudio.LanguageServices (1)
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
458public bool Equals((ProjectId, IAssemblySymbol) x, (ProjectId, IAssemblySymbol) y)
PresentationCore (1)
System\Windows\Media\FontEmbeddingManager.cs (1)
98public bool Equals(Uri x, Uri y)
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2950bool IEqualityComparer<ItemInfo>.Equals(ItemInfo x, ItemInfo y)
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
53public bool Equals(Uri a, Uri b)
Roslyn.Diagnostics.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
System.Collections (1)
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
31public bool Equals(SortedSet<T>? x, SortedSet<T>? y) => SortedSet<T>.SortedSetEquals(x, y, _comparer);
System.Collections.Immutable (5)
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
306public abstract bool Equals(string? x, string? y);
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (2)
101public bool Equals(HashBucket x, HashBucket y) 128bool IEqualityComparer<KeyValuePair<TKey, TValue>>.Equals(KeyValuePair<TKey, TValue> x, KeyValuePair<TKey, TValue> y)
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
37public bool Equals(HashBucket x, HashBucket y) => x.EqualsByRef(y);
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
46public bool Equals(HashBucket x, HashBucket y) => x.EqualsByValue(y, _valueComparer);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
254public bool Equals(Type? x, Type? y) => x!.IsEquivalentTo(y);
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
273public bool Equals(ParameterInfo x, ParameterInfo y)
System.Data.Common (3)
System\Data\Common\ObjectStorage.cs (1)
647public bool Equals(KeyValuePair<Type, XmlRootAttribute> x, KeyValuePair<Type, XmlRootAttribute> y)
System\Data\DataRowComparer.cs (1)
137public bool Equals(TRow? leftRow, TRow? rightRow)
System\Data\DataView.cs (1)
87public bool Equals(DataRow? x, DataRow? y) => x == (object?)y;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesActivitySourceListener.cs (1)
235public bool Equals(SpecLookupKey x, SpecLookupKey y)
System.Formats.Cbor (2)
System\Formats\Cbor\Reader\CborReader.Map.cs (1)
218public bool Equals((int Offset, int Length) x, (int Offset, int Length) y)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
285public bool Equals((int Offset, int Length) x, (int Offset, int Length) y)
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
733bool IEqualityComparer<string>.Equals(string? extensionA, string? extensionB)
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (1)
27public bool Equals(Wrapper<T> x, Wrapper<T> y)
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
37public abstract bool Equals(T? x, T? y);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
11public bool Equals(HashSet<T>? x, HashSet<T>? y)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (1)
43public virtual bool Equals(string? x, string? y)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (1)
43public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
214public bool Equals(T? x, T? y) => Compare(x, y) == 0;
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
58public bool Equals(string? a, string? b)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
207public abstract bool Equals(string? x, string? y);
System.Private.Windows.Core (2)
System\Collections\Specialized\CompatibleIComparer.cs (1)
36public bool Equals(string? x, string? y)
System\Reflection\Metadata\TypeNameComparer.cs (1)
32public bool Equals(TypeName? x, TypeName? y)
System.Private.Windows.Core.TestUtilities (1)
XUnit\FloatingPointToleranceComparerer.cs (1)
19public bool Equals(T x, T y) => ComparisonHelpers.EqualsFloating(x, y, _tolerance);
System.Private.Xml.Linq (2)
System\Xml\Linq\XNodeEqualityComparer.cs (1)
37public bool Equals(XNode? x, XNode? y)
System\Xml\Schema\XNodeValidator.cs (1)
378public bool Equals(XmlSchemaInfo? si1, XmlSchemaInfo? si2)
System.Reflection.Metadata (2)
System\Reflection\Metadata\HandleComparer.cs (2)
21public bool Equals(Handle x, Handle y) 26public bool Equals(EntityHandle x, EntityHandle y)
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
58public bool Equals(string? a, string? b)
System\Resources\Extensions\TypeNameComparer.cs (1)
55public bool Equals(string assemblyQualifiedTypeName1, string assemblyQualifiedTypeName2)
System.Resources.Writer (1)
System\Resources\__FastResourceComparer.cs (1)
41public bool Equals(string? a, string? b)
System.ServiceModel.Primitives (4)
System\IdentityModel\Claims\ClaimComparer.cs (1)
156public bool Equals(Claim claim1, Claim claim2)
System\ServiceModel\ChannelFactoryRefCache.cs (1)
67public bool Equals(EndpointTrait<TChannel> x, EndpointTrait<TChannel> y)
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
965public bool Equals(QName x, QName y)
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
177public bool Equals(byte[] x, byte[] y)
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.PropertyNameSet.cs (1)
148public bool Equals(ReadOnlyMemory<byte> left, ReadOnlyMemory<byte> right) =>
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
484public bool Equals(JsonSerializerOptions? left, JsonSerializerOptions? right)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
367public bool Equals(ImmutableArray<object> left, ImmutableArray<object> right)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
974bool IEqualityComparer<object>.Equals(object? x, object? y)
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
46bool IEqualityComparer<object>.Equals(object? x, object? y)
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
233public new bool Equals(object x, object y)
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
423bool IEqualityComparer<X509Certificate2>.Equals(X509Certificate2 x, X509Certificate2 y) =>
Test.Utilities (12)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
Text.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
880public bool Equals(string? x, string? y)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
25public bool Equals(ReadOnlyMemory<char> x, ReadOnlyMemory<char> y) 50public bool Equals(ReadOnlyMemory<char> a, ReadOnlyMemory<char> b)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
21public bool Equals(SegmentedHashSet<T>? x, SegmentedHashSet<T>? y)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
41public new bool Equals(object? x, object? y) => ReferenceEquals(x, y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
845public bool Equals(TDirectiveTriviaSyntax? x, TDirectiveTriviaSyntax? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
46bool IEqualityComparer<TSyntaxNode>.Equals([AllowNull] TSyntaxNode x, [AllowNull] TSyntaxNode y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
19public bool Equals(SymbolKey x, SymbolKey y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
19public bool Equals(ImmutableArray<T> x, ImmutableArray<T> y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
17public bool Equals(IAssemblySymbol? x, IAssemblySymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
155public bool Equals(ISymbol? x, ISymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
55public bool Equals(IParameterSymbol? x, IParameterSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
15public bool Equals(ITypeSymbol? x, ITypeSymbol? y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
22public bool Equals(ReferenceLocation x, ReferenceLocation y)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
43bool IEqualityComparer<T>.Equals(T? x, T? y)
xunit.assert (4)
Sdk\AssertEqualityComparer.cs (2)
163 public bool Equals( 408 public bool Equals(
Sdk\AssertEqualityComparerAdapter.cs (1)
55 public bool Equals(
Sdk\AssertHelper.cs (1)
777 public new bool Equals(
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (1)
95public bool Equals(T x, T y)
747 references to Equals
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (1)
189return _comparer.Equals(this, obj as Claim);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimSet.cs (1)
88if (comparer.Equals(claim, matchingClaim))
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
98return GetClaimComparer().Equals(this.IdentityClaim, claim);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (5)
76if (_comparer.Equals(key, this.GetKeyForItem(item))) 115if (!_comparer.Equals(newKey, oldKey)) 150if (_comparer.Equals(key, GetKeyForItem(item))) 214if (_comparer.Equals(key, GetKeyForItem(Items[i]))) 253if (_comparer.Equals(newKey, oldKey))
GenerateDocumentationAndConfigFiles (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
ILLink.RoslynAnalyzer (1)
ImmutableArrayOperations.cs (1)
17if (comparer.Equals(e, elem))
Metrics (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Metrics.Legacy (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (2)
46return s_instance.Equals(left, right); 141comparer.Equals(expected, actual) :
Microsoft.AspNetCore.Http (2)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
563if (_comparer.Equals(ArrayStorageSpan[i].Key, key)) 583if (_comparer.Equals(item.Key, key))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (1)
14public bool Equals(Endpoint x, Endpoint y) => OrdinalComparer.Equals(x.HttpMethod, y.HttpMethod);
Microsoft.AspNetCore.Routing (2)
DecisionTree\DecisionCriterionValueEqualityComparer.cs (1)
17return InnerComparer.Equals(x.Value, y.Value);
Tree\LinkGenerationDecisionTree.cs (1)
146!criterion.Branches.Comparer.Equals(value, string.Empty))
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
563if (_comparer.Equals(ArrayStorageSpan[i].Key, key)) 583if (_comparer.Equals(item.Key, key))
Microsoft.Build.Framework (1)
BinaryTranslator.cs (1)
652else if (comparer.Equals(key, SpecialKeyForDictionaryBeingNull))
Microsoft.CodeAnalysis (34)
Binding\AbstractLookupSymbolsInfo.cs (1)
240public bool CanBeAdded(string name) => FilterName == null || _comparer.Equals(name, FilterName);
Collections\ConcurrentCache.cs (2)
51if (entry != null && entry.hash == hash && _keyComparer.Equals(entry.key, key)) 66if (entry != null && entry.hash == hash && _keyComparer.Equals(entry.key, key))
Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
30if (!PathUtilities.Comparer.Equals(x.Path, y.Path))
DiagnosticAnalyzer\AnalysisScope.cs (1)
310!PathUtilities.Comparer.Equals(externalFileLocation.GetLineSpan().Path, filterFile.AdditionalFile.Path))
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
135return PathUtilities.Comparer.Equals(_contextFile.Value.AdditionalFile.Path, externalFileLocation.GetLineSpan().Path);
InternalUtilities\IReadOnlyListExtensions.cs (1)
16if (comparer.Equals(item, list[i]))
InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
SourceGeneration\Nodes\NodeStateTable.cs (2)
562return _equalityComparer.Equals(previous, replacement) 616if (!equalityComparer.Equals(this.GetItem(i), entry.GetItem(i)))
SourceGeneration\UserFunction.cs (1)
39return _inner.Equals(x, y);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Microsoft.CodeAnalysis.Analyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.AnalyzerUtilities (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.BannedApiAnalyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.CodeStyle (28)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.Collections.Package (20)
Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Microsoft.CodeAnalysis.CSharp (5)
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
609if (exactMatchComparer.Equals(member, otherMember)) 614else if (fallbackComparer.Equals(member, otherMember)) 863if (otherMember != representativeMember && comparer.Equals(otherMember, representativeMember))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
1034if (retargetedMethodComparer.Equals(retargetedMethod, targetMethod)) 1100if (retargetedPropertyComparer.Equals(retargetedProperty, targetProperty))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyTestBase.cs (2)
88Assert.True(comparer.Equals(sid, deserialized)); 109var ret = CodeAnalysis.SymbolKey.GetComparer(ignoreCase, ignoreAssemblyIds).Equals(sid2, sid1);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3968d => d.Id == analyzer.Descriptor.Id && PathUtilities.Comparer.Equals(d.Location.GetLineSpan().Path, additionalFile.Path));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
543(Equals(symbol, _renamedSymbol) || SymbolKey.GetComparer(ignoreCase: true, ignoreAssemblyKeys: false).Equals(symbol.GetSymbolKey(), _renamedSymbol.GetSymbolKey())))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
425=> GetStringComparer().Equals(actualItem, expectedItem);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
128Assert.True(SymbolKey.GetComparer(ignoreCase: true, ignoreAssemblyKeys: false).Equals(metadataSymbolId, generatedSymbol.GetSymbolKey()));
Microsoft.CodeAnalysis.Extensions.Package (24)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.Features (6)
Debugging\AbstractBreakpointResolver.cs (2)
163return comparer.Equals(namespaceSymbol.Name, nameAndArity.Name) && nameAndArity.Arity == 0; 165return comparer.Equals(typeSymbol.Name, nameAndArity.Name) &&
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2583=> (exact ? s_exactSymbolEqualityComparer : (IEqualityComparer<ITypeSymbol?>)s_runtimeSymbolEqualityComparer.SignatureTypeEquivalenceComparer).Equals(oldType, newType); 4193return s_symbolKeyComparer.Equals(x.Symbol, y.Symbol);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
445s_symbolIdComparer.Equals(_symbolId, other._symbolId) &&
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (1)
33CodeAnalysis.SymbolKey.GetComparer(ignoreCase: false, ignoreAssemblyKeys: false).Equals(SymbolKey.Value, obj.SymbolKey.Value));
Microsoft.CodeAnalysis.InteractiveHost (20)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.PublicApiAnalyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.ResxSourceGenerator (30)
AbstractResxGenerator.cs (1)
301|| !x.ValueComparer.Equals(value, other))
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.Test.Utilities (8)
Assert\AssertEx.cs (4)
62return Instance.Equals(left, right); 143else if (!(comparer ?? AssertEqualityComparer<T>.Instance).Equals(expected, actual)) 357if (!(comparer != null ? comparer.Equals(value1, value2) : AssertEqualityComparer<T>.Equals(value1, value2))) 373if (!(comparer is not null ? comparer.Equals(expected[i], actual[i]) : AssertEqualityComparer<T>.Equals(expected[i], actual[i])))
Assert\AssertXml.cs (3)
147if (!shallowComparer.Equals(expectedRoot, actualRoot)) 160Debug.Assert(shallowComparer.Equals(pair.Item1, pair.Item2)); // Shouldn't have been pushed otherwise. 224: AssertXml.NameAndAttributeComparer.Instance.Equals(element1, element2);
Assert\DiffUtil.cs (1)
52return _comparer.Equals(sequenceA[indexA], sequenceB[indexB]);
Microsoft.CodeAnalysis.Threading.Package (20)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Microsoft.CodeAnalysis.UnitTests (4)
Collections\BadHasher.cs (1)
30return _equalityComparer.Equals(x, y);
Collections\HashSet\TestingTypes.cs (1)
405public bool Equals(T? x, T? y) => _comparer.Equals(x, y);
Collections\ImmutableDictionaryTestBase.cs (2)
259Assert.True(GetValueComparer(map).Equals(value1, value2)); 284Assert.False(GetValueComparer(map).Equals(value1, value2));
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_XmlLiterals.vb (1)
588Private Function IEqualityComparer_Equals(x As XmlName, y As XmlName) As Boolean Implements IEqualityComparer(Of XmlName).Equals
Declarations\SingleNamespaceDeclaration.vb (1)
62Private Shadows Function Equals(decl1 As SingleNamespaceDeclaration, decl2 As SingleNamespaceDeclaration) As Boolean Implements IEqualityComparer(Of SingleNamespaceDeclaration).Equals
Symbols\EventSignatureComparer.vb (1)
110Implements IEqualityComparer(Of EventSymbol).Equals
Symbols\MethodSignatureComparer.vb (1)
233Implements IEqualityComparer(Of MethodSymbol).Equals
Symbols\PropertySignatureComparer.vb (1)
93Implements IEqualityComparer(Of PropertySymbol).Equals
Symbols\TypeSymbol.vb (1)
760Public Overloads Function Equals(x As Symbol, y As Symbol) As Boolean Implements IEqualityComparer(Of Symbol).Equals
Microsoft.CodeAnalysis.Workspaces (29)
Diagnostics\DocumentAnalysisScope.cs (1)
59return TextDocument.Project.AnalyzerOptions.AdditionalFiles.First(a => PathUtilities.Comparer.Equals(a.Path, filePath));
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\ProjectMap.cs (1)
174if (PathUtilities.Comparer.Equals(p, path))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
src\Compilers\Core\Portable\InternalUtilities\IReadOnlyListExtensions.cs (1)
16if (comparer.Equals(item, list[i]))
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SymbolKeyTests.cs (3)
1318Assert.True(SymbolKey.GetComparer(ignoreCase: true).Equals(symbolKey1, symbolKey2)); 1319Assert.True(SymbolKey.GetComparer(ignoreAssemblyKeys: true).Equals(symbolKey1, symbolKey2)); 1320Assert.True(SymbolKey.GetComparer(ignoreCase: true, ignoreAssemblyKeys: true).Equals(symbolKey1, symbolKey2));
Microsoft.DotNet.NuGetRepack.Tests (3)
TestHelpers\AssertEx.cs (2)
46return s_instance.Equals(left, right); 141comparer.Equals(expected, actual) :
TestHelpers\DiffUtil.cs (1)
49return _comparer.Equals(sequenceA[indexA], sequenceB[indexB]);
Microsoft.Extensions.Http.Resilience.Tests (4)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (4)
176registryOptions.BuilderComparer.Equals(new HttpKey("A", "1"), new HttpKey("A", "2")).Should().BeTrue(); 177registryOptions.BuilderComparer.Equals(new HttpKey("A", "1"), new HttpKey("B", "1")).Should().BeFalse(); 179registryOptions.PipelineComparer.Equals(new HttpKey("A", "1"), new HttpKey("A", "1")).Should().BeTrue(); 180registryOptions.PipelineComparer.Equals(new HttpKey("A", "1"), new HttpKey("A", "2")).Should().BeFalse();
Microsoft.Interop.ComInterfaceGenerator (2)
Comparers.cs (2)
62return _item1Comparer.Equals(x.Item1, y.Item1) && _item2Comparer.Equals(x.Item2, y.Item2);
Microsoft.Interop.JavaScript.JSImportGenerator (6)
Comparers.cs (6)
66return _item1Comparer.Equals(x.Item1, y.Item1) && _item2Comparer.Equals(x.Item2, y.Item2); 92return _item1Comparer.Equals(x.Item1, y.Item1) 93&& _item2Comparer.Equals(x.Item2, y.Item2) 94&& _item3Comparer.Equals(x.Item3, y.Item3) 95&& _item4Comparer.Equals(x.Item4, y.Item4)
Microsoft.Interop.LibraryImportGenerator (2)
Comparers.cs (2)
62return _item1Comparer.Equals(x.Item1, y.Item1) && _item2Comparer.Equals(x.Item2, y.Item2);
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Comparers.cs (2)
62return _item1Comparer.Equals(x.Item1, y.Item1) && _item2Comparer.Equals(x.Item2, y.Item2);
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
121return item.Value != null && item.Value._parent == this && _children.Comparer.Equals(item.Key, item.Value.Key);
Microsoft.ML.Data (2)
Transforms\Hashing.cs (1)
1563return (x.Key == y.Key) && _tComparer.Equals(x.Value, y.Value);
Transforms\InvertHashUtils.cs (1)
136return _tComparer.Equals(x.Value, y.Value);
Microsoft.Net.Http.Headers (1)
HeaderUtilities.cs (1)
126((comparer != null) && comparer.Equals(xItem, yItem)))
PresentationFramework (2)
System\Windows\Controls\Primitives\Selector.cs (2)
2887return _list.FindIndex( (ItemInfo x) => { return _equalityComparer.Equals(info, x); } ); 2893return _list.FindLastIndex( (ItemInfo x) => { return _equalityComparer.Equals(info, x); } );
Roslyn.Diagnostics.Analyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (2)
680if (entry.HashCode == hashCode && comparer.Equals(entry.Key, key)) 836if (_comparer.Equals(key, e.Key))
System\Collections\Generic\PriorityQueue.cs (1)
899if (equalityComparer.Equals(element, nodes[i].Element))
System.Collections.Concurrent (4)
System\Collections\Concurrent\ConcurrentDictionary.cs (4)
327comparer.Equals(node._key, key); 331return comparer.Equals(node._key, key); 546if (hashcode == n._hashcode && comparer.Equals(n._key, key)) 579if (hashcode == n._hashcode && comparer.Equals(n._key, key))
System.Collections.Immutable (35)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
32if (comparer.Equals(key, _keys[index]))
System\Collections\Frozen\DefaultFrozenSet.cs (1)
29if (comparer.Equals(item, _items[index]))
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
43if (comparer.Equals(keys[i], key))
System\Collections\Frozen\SmallFrozenSet.cs (1)
32if (Comparer.Equals(item, items[i]))
System\Collections\Immutable\ImmutableArray_1.Builder.cs (2)
811if (equalityComparer.Equals(_elements[i], item)) 908if (equalityComparer.Equals(item, _elements[i]))
System\Collections\Immutable\ImmutableArray_1.cs (2)
188if (equalityComparer.Equals(self.array![i], item)) 273if (equalityComparer.Equals(item, self.array![i]))
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
544if (this.ValueComparer.Equals(value, item.Value))
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (3)
104&& this.KeyComparer.Equals(x.FirstValue.Key, y.FirstValue.Key) 105&& this.ValueComparer.Equals(x.FirstValue.Value, y.FirstValue.Value); 130return _keyComparer.Equals(x.Key, y.Key);
System\Collections\Immutable\ImmutableDictionary_2.cs (2)
485if (this.ValueComparer.Equals(value, item.Value)) 896&& origin.ValueComparer.Equals(value, keyValuePair.Value);
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (6)
149if (keyOnlyComparer.Equals(kv, _firstValue)) 160if (!valueComparer.Equals(_firstValue.Value, value)) 192if (!valueComparer.Equals(existingEntry.Value, value)) 223if (keyOnlyComparer.Equals(_firstValue, kv)) 268if (comparers.KeyComparer.Equals(_firstValue.Key, key)) 307if (comparers.KeyComparer.Equals(_firstValue.Key, equalKey))
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (5)
120return valueComparer.Equals(_firstValue, other._firstValue) 139if (valueComparer.Equals(value, _firstValue) || _additionalElements.IndexOf(value, valueComparer) >= 0) 161return valueComparer.Equals(value, _firstValue) || _additionalElements.IndexOf(value, valueComparer) >= 0; 177if (valueComparer.Equals(value, _firstValue)) 210if (equalityComparer.Equals(_firstValue, value))
System\Collections\Immutable\ImmutableList_1.Node.cs (3)
772if (equalityComparer.Equals(item, enumerator.Current)) 813if (equalityComparer.Equals(item, enumerator.Current)) 1586private static bool Contains(Node node, T value, IEqualityComparer<T> equalityComparer) => !node.IsEmpty && (equalityComparer.Equals(value, node._key) || Contains(node._left!, value, equalityComparer) || Contains(node._right!, value, equalityComparer));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
863if (!_valueComparer.Equals(value, item.Value))
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (3)
396if (valueComparer.Equals(value, item.Value)) 425return valueComparer.Equals(matchingNode._value, pair.Value); 652if (valueComparer.Equals(_value, value))
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
435if (valueComparer.Equals(_value!, value))
System\Linq\ImmutableArrayExtensions.cs (2)
174if (!comparer.Equals(immutableArray.array![i], items.array![i])) 203if (!comparer.Equals(immutableArray[i], item))
System.Linq (4)
System\Linq\Contains.cs (1)
71if (comparer.Equals(element, value))
System\Linq\Lookup.cs (1)
209if (g._hashCode == hashCode && _comparer.Equals(g._key, key))
System\Linq\SequenceEqual.cs (2)
44if (!comparer.Equals(firstList[i], secondList[i])) 60if (!(e2.MoveNext() && comparer.Equals(e1.Current, e2.Current)))
System.Linq.AsyncEnumerable (3)
System\Linq\ContainsAsync.cs (1)
38if (comparer.Equals(element, value))
System\Linq\SequenceEqualAsync.cs (1)
44if (!await e2.MoveNextAsync() || !comparer.Equals(e1.Current, e2.Current))
System\Linq\ToLookupAsync.cs (1)
353if (g._hashCode == hashCode && _comparer.Equals(g._key, key))
System.Linq.Parallel (7)
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
192if (_comparer.Equals(element, _searchValue))
System\Linq\Parallel\Utils\HashLookup.cs (1)
72comparer.Equals(key1, key2));
System\Linq\Parallel\Utils\Lookup.cs (3)
68if (_comparer.Equals(key, default)) 92if (_comparer.Equals(key, default)) 113if (_comparer.Equals(grouping.Key, default))
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (1)
30return _comparer.Equals(x.Value, y.Value);
System\Linq\ParallelEnumerable.cs (1)
4398if (!(e2.MoveNext() && comparer.Equals(e1.Current, e2.Current))) return false;
System.Net.Http (1)
System\Net\Http\Headers\HeaderUtilities.cs (1)
217((comparer != null) && comparer.Equals(xItem, yItem)))
System.ObjectModel (5)
System\Collections\ObjectModel\KeyedCollection.cs (5)
83if (comparer.Equals(GetKeyForItem(item), key)) 104if (keyInItems != null && comparer.Equals(key, keyInItems)) 144if (comparer.Equals(GetKeyForItem(Items[i]), key)) 164if (!comparer.Equals(oldKey, newKey)) 213if (comparer.Equals(oldKey, newKey))
System.Private.CoreLib (39)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (5)
460if (entry.hashCode == hashCode && comparer.Equals(entry.key, key)) 571if (entries[i].hashCode == hashCode && comparer.Equals(entries[i].key, key)) 1127if (entries[i].hashCode == hashCode && comparer.Equals(entries[i].key, key)) 1321(typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry.key, key) : comparer!.Equals(entry.key, key))) 1394(typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry.key, key) : comparer!.Equals(entry.key, key)))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (3)
261if (entry.HashCode == hashCode && comparer.Equals(entry.Value, item)) 316if (entry.HashCode == hashCode && (comparer?.Equals(entry.Value, item) ?? EqualityComparer<T>.Default.Equals(entry.Value, item))) 1463if (entry.HashCode == hashCode && comparer.Equals(entry.Value, value))
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (31)
913if (!comparer.Equals(span[i], value)) 1018if (!comparer.Equals(span[i], value0) && 1019!comparer.Equals(span[i], value1)) 1130if (!comparer.Equals(span[i], value0) && 1131!comparer.Equals(span[i], value1) && 1132!comparer.Equals(span[i], value2)) 1491if (!comparer.Equals(span[i], value)) 1596if (!comparer.Equals(span[i], value0) && 1597!comparer.Equals(span[i], value1)) 1709if (!comparer.Equals(span[i], value0) && 1710!comparer.Equals(span[i], value1) && 1711!comparer.Equals(span[i], value2)) 2274if (comparer.Equals(span[i], value)) 2480if (comparer.Equals(span[i], value)) 2720if (comparer.Equals(span[i], value0) || 2721comparer.Equals(span[i], value1)) 2826if (comparer.Equals(span[i], value0) || 2827comparer.Equals(span[i], value1) || 2828comparer.Equals(span[i], value2)) 3141if (comparer.Equals(span[i], value0) || 3142comparer.Equals(span[i], value1)) 3248if (comparer.Equals(span[i], value0) || 3249comparer.Equals(span[i], value1) || 3250comparer.Equals(span[i], value2)) 3492if (!comparer.Equals(span[i], other[i])) 3654(comparer is null ? EqualityComparer<T>.Default.Equals(span[0], value) : comparer.Equals(span[0], value)); 3678(comparer is null ? EqualityComparer<T>.Default.Equals(span[^1], value) : comparer.Equals(span[^1], value)); 4560if (comparer.Equals(span[i], oldValue)) 4752destination[i] = comparer.Equals(source[i], oldValue) ? newValue : source[i]; 4946if (!comparer.Equals(span[i], other[i])) 5483if (comparer.Equals(span[i], value))
System.ServiceModel.Primitives (8)
System\IdentityModel\Claims\Claim.cs (1)
226return _comparer.Equals(this, obj as Claim);
System\IdentityModel\Claims\ClaimSet.cs (1)
73if (comparer.Equals(claim, matchingClaim))
System\ServiceModel\EndpointIdentity.cs (1)
130return GetClaimComparer().Equals(IdentityClaim, claim);
System\ServiceModel\SynchronizedKeyedCollection.cs (5)
81if (_comparer.Equals(key, GetKeyForItem(item))) 128if (!_comparer.Equals(newKey, oldKey)) 173if (_comparer.Equals(key, GetKeyForItem(item))) 253if (_comparer.Equals(key, GetKeyForItem(Items[i]))) 298if (_comparer.Equals(newKey, oldKey))
Test.Utilities (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
Text.Analyzers (29)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
63return Comparer.Equals(k1, k2);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
159if (_equalityComparer.Equals((V)_value!, v)) 175return _equalityComparer.Equals((V)_value!, v); 185if (comparer.Equals(other, v))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
300if (comparer.Equals(value, firstValue)) 629if (comparer.Equals(item, value)) 644if (comparer.Equals(list[i], value))
src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
43return comparer.Equals(selector(list[0]), selector(list[1]));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
652return comparer.Equals(item1, item2); 778return comparer.Equals(selector(array[0]), selector(array[1]));
src\Dependencies\Collections\OneOrMany.cs (2)
202return HasOneItem ? comparer.Equals(_one, other._one!) : 221if (!first || !comparer.Equals(_one, otherItem))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
251if (self.KeyComparer.Equals(key, equalKey))
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
213if (KeyComparer.Equals(pair.Key, equalKey))
src\Dependencies\Collections\Segmented\SegmentedArray.cs (2)
247if (comparer.Equals(array[i], value)) 327if (comparer.Equals(array[i], value))
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
463if (entry._hashCode == hashCode && comparer.Equals(entry._key, key)) 584if (entries[i]._hashCode == hashCode && comparer!.Equals(entries[i]._key, key)) 723(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key))) 800(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? EqualityComparer<TKey>.Default.Equals(entry._key, key) : comparer!.Equals(entry._key, key)))
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
264if (entry._hashCode == hashCode && comparer!.Equals(entry._value, item)) 315if (entry._hashCode == hashCode && (comparer?.Equals(entry._value, item) ?? EqualityComparer<T>.Default.Equals(entry._value, item))) 1070if (entry._hashCode == hashCode && comparer!.Equals(entry._value, value))
src\Dependencies\Collections\TemporaryArray`1.cs (1)
265if (equalityComparer.Equals(v, value))
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
65return Comparer.Equals(k1, k2);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SignatureComparer.cs (3)
172this.SignatureTypeEquivalenceComparer.Equals(property1.Type, property2.Type); 217if (!method1.ReturnsVoid && !this.SignatureTypeEquivalenceComparer.Equals(method1.ReturnType, method2.ReturnType)) 252=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (1)
150=> symbolEquivalenceComparer._assemblyComparer?.Equals(x, y) ?? true;
xunit.assert (7)
CollectionAsserts.cs (1)
398 if (comparer.Equals(item, expected))
EqualityAsserts.cs (4)
166 if (comparer.Equals(expected, actual)) 254 if (comparer.Equals(expected, actual)) 681 if (!comparer.Equals(expected, actual)) 768 if (!comparer.Equals(expected, actual))
Sdk\AssertEqualityComparerAdapter.cs (2)
47 innerComparer.Equals((T?)x, (T?)y); 63 innerComparer.Equals(x, y);