538 implementations of GetHashCode
Aspire.Dashboard (2)
Otlp\Model\OtlpInstrument.cs (1)
141public int GetHashCode([DisallowNull] ReadOnlyMemory<KeyValuePair<string, string>> obj)
Otlp\Model\OtlpResource.cs (1)
354public int GetHashCode([DisallowNull] KeyValuePair<string, string>[] obj)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Hosting.Azure.AppContainers (1)
src\Shared\ResourceNameComparer.cs (1)
20public int GetHashCode(IResource obj) =>
Aspire.Hosting.Azure.AppService (1)
src\Shared\ResourceNameComparer.cs (1)
20public int GetHashCode(IResource obj) =>
Aspire.Hosting.Docker (1)
src\Shared\ResourceNameComparer.cs (1)
20public int GetHashCode(IResource obj) =>
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Hosting.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
Aspire.Playground.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
BuildActionTelemetryTable (1)
Program.cs (1)
361public int GetHashCode([DisallowNull] Type obj)
BuildValidator (1)
FileNameEqualityComparer.cs (1)
24public int GetHashCode(FileInfo? file)
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Core\SecureStringHasher.cs (1)
54public int GetHashCode(String key)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2556public int GetHashCode(TypeHandleRef obj)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\ClaimComparer.cs (1)
156public int GetHashCode(Claim claim)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
262public int GetHashCode(CodeTypeReference obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
658int IEqualityComparer<MessageDescription>.GetHashCode(MessageDescription obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
909public int GetHashCode(QName obj)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\InMemoryNonceCache.cs (1)
98public int GetHashCode(byte[] o)
GenerateDocumentationAndConfigFiles (14)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Metrics (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Metrics.Legacy (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
115int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\AmbiguousRoutePatternComparer.cs (1)
153public int GetHashCode(RoutePatternTree obj)
Microsoft.AspNetCore.Components (4)
Rendering\SimplifiedStringHashComparer.cs (1)
25public int GetHashCode(string key)
Routing\QueryParameterNameComparer.cs (1)
18public int GetHashCode([DisallowNull] ReadOnlyMemory<char> obj)
Routing\RouteTableFactory.cs (1)
344public int GetHashCode(InboundRouteEntry obj)
src\Http\Routing\src\RouteValueEqualityComparer.cs (1)
47public int GetHashCode(object obj)
Microsoft.AspNetCore.Components.Server.Tests (1)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\TestHubMessageEqualityComparer.cs (1)
164public int GetHashCode(HubMessage obj)
Microsoft.AspNetCore.Components.Tests (1)
Routing\TemplateParserTests.cs (1)
328public int GetHashCode(RoutePattern obj) => 0;
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
272public int GetHashCode(char obj)
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
305public int GetHashCode(IFileInfo obj) => obj.Name.GetHashCode(_fsComparison);
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlAssert.cs (1)
142public int GetHashCode(T obj)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ConverterTests\JsonElementComparer.cs (1)
99public int GetHashCode(JsonElement obj)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
305public int GetHashCode(IFileInfo obj) => obj.Name.GetHashCode(_fsComparison);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\EndpointDelegateComparer.cs (1)
13public int GetHashCode(Endpoint endpoint) => Endpoint.GetSignatureHashCode(endpoint);
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (1)
16public int GetHashCode(Endpoint obj) => OrdinalComparer.GetHashCode(obj.HttpMethod);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
183public int GetHashCode(Claim obj)
Microsoft.AspNetCore.InternalTesting (1)
Logging\LogValuesAssert.cs (1)
66public int GetHashCode(KeyValuePair<string, object> obj)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
724public int GetHashCode(PropertyKey obj)
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\StringArrayComparer.cs (1)
57public int GetHashCode(string[] obj)
Routing\AttributeRoute.cs (1)
273public int GetHashCode(RouteInfo obj)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
DataAnnotationsMetadataProviderTest.cs (1)
1752public int GetHashCode(KeyValuePair<EnumGroupAndName, string> obj)
ModelValidationResultComparer.cs (1)
27public int GetHashCode(ModelValidationResult obj)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
35public int GetHashCode(TagHelperAttribute attribute)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
35public int GetHashCode(TagHelperAttribute attribute)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
LambdaExpressionComparer.cs (1)
81public int GetHashCode(LambdaExpression lambdaExpression)
MemberExpressionCacheKeyComparer.cs (1)
37public int GetHashCode(MemberExpressionCacheKey obj)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\AddOpenApiInvocationComparer.cs (1)
25public int GetHashCode(AddOpenApiInvocation obj) =>
Microsoft.AspNetCore.RateLimiting (1)
DefaultKeyTypeEqualityComparer.cs (1)
26public int GetHashCode([DisallowNull] DefaultKeyType obj)
Microsoft.AspNetCore.Razor.Runtime.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
35public int GetHashCode(TagHelperAttribute attribute)
Microsoft.AspNetCore.Razor.Test (1)
src\Shared\Razor\CaseSensitiveBoundAttributeComparer.cs (1)
35public int GetHashCode(TagHelperAttribute attribute)
Microsoft.AspNetCore.Routing (3)
DecisionTree\DecisionCriterionValueEqualityComparer.cs (1)
20public int GetHashCode(DecisionCriterionValue obj)
Matching\EndpointComparer.cs (1)
85public int GetHashCode(Endpoint obj)
RouteValueEqualityComparer.cs (1)
47public int GetHashCode(object obj)
Microsoft.AspNetCore.Routing.Tests (3)
Patterns\RoutePatternParserTest.cs (2)
748public int GetHashCode(RoutePattern obj) 753public int GetHashCode(RoutePatternParameterPolicyReference obj)
Template\TemplateParserTests.cs (1)
902public int GetHashCode(RouteTemplate obj)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\TestHubMessageEqualityComparer.cs (1)
164public int GetHashCode(HubMessage obj)
Microsoft.Build.Framework (1)
MSBuildNameIgnoreCaseComparer.cs (1)
37public int GetHashCode(string obj)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.Cci.Extensions (6)
Comparers\StringKeyComparer.cs (1)
31public int GetHashCode(T obj)
Experimental\APIClosureTypeReferenceVisitor.cs (1)
78public int GetHashCode(IAssemblyReference obj)
Experimental\TypeReferenceSearcher.cs (1)
45public int GetHashCode(TypeReferenceDependency obj)
Experimental\TypeReferenceVisitor.cs (1)
78public int GetHashCode(IAssemblyReference obj)
Traversers\DependencyTraverser.cs (1)
214public int GetHashCode(T obj)
Traversers\ResolveAllReferencesTraverser.cs (1)
147public int GetHashCode(IReference obj)
Microsoft.CodeAnalysis (29)
Collections\ByteSequenceComparer.cs (2)
112int IEqualityComparer<byte[]>.GetHashCode(byte[] x) 122int IEqualityComparer<ImmutableArray<byte>>.GetHashCode(ImmutableArray<byte> x)
CommandLine\AnalyzerConfigSet.cs (1)
91public int GetHashCode(List<Section> obj) => Hash.CombineValues(obj);
CommandLine\SarifDiagnosticComparer.cs (1)
59public int GetHashCode(DiagnosticDescriptor obj)
Diagnostic\CommonDiagnosticComparer.cs (1)
33public int GetHashCode(Diagnostic obj)
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
53public int GetHashCode(AdditionalText obj)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
433public int GetHashCode(TExtension obj) => obj.GetType().GetHashCode();
FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
InternalUtilities\CharMemoryEqualityComparer.cs (1)
21public int GetHashCode(ReadOnlyMemory<char> mem) => Hash.GetFNVHashCode(mem.Span);
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
InternalUtilities\StringOrdinalComparer.cs (1)
36int IEqualityComparer<string>.GetHashCode(string s)
MetadataReader\PEModule.cs (1)
805public int GetHashCode(NamespaceDefinitionHandle obj)
PEWriter\MemberRefComparer.cs (1)
58public int GetHashCode(ITypeMemberReference memberRef)
PEWriter\MetadataWriter.cs (1)
4366int IEqualityComparer<(ImmutableArray<byte>, bool)>.GetHashCode((ImmutableArray<byte>, bool) x)
PEWriter\MetadataWriter.PortablePdb.cs (1)
48public int GetHashCode(IImportScope obj)
PEWriter\MethodSpecComparer.cs (1)
33public int GetHashCode(IGenericMethodInstanceReference methodInstanceReference)
PEWriter\SymbolEquivalentEqualityComparer.cs (2)
45public int GetHashCode(IReference? obj) 80public int GetHashCode(INamespace? obj)
PEWriter\TypeSpecComparer.cs (1)
24public int GetHashCode(ITypeReference typeReference)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
595public int GetHashCode(MetadataReference reference)
SourceGeneration\UserFunction.cs (1)
47public int GetHashCode([DisallowNull] T obj)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
50public int GetHashCode(AttributeData attr) 129public int GetHashCode(TypedConstant obj) 150public int GetHashCode(KeyValuePair<string, TypedConstant> pair)
Symbols\SymbolEqualityComparer.cs (1)
60public int GetHashCode(ISymbol? obj)
Syntax\SyntaxTreeComparer.cs (1)
31public int GetHashCode(SyntaxTree obj)
Text\SourceTextComparer.cs (1)
28public int GetHashCode(SourceText? obj)
Microsoft.CodeAnalysis.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.CodeAnalysis.BannedApiAnalyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
110int IEqualityComparer<ISymbol>.GetHashCode(ISymbol obj)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder_Operators.cs (1)
3782public int GetHashCode([DisallowNull] MethodSymbol method)
Binder\DecisionDagBuilder.cs (1)
1966public int GetHashCode(DagState x)
Binder\Imports.cs (1)
220int IEqualityComparer<NamespaceOrTypeAndUsingDirective>.GetHashCode(NamespaceOrTypeAndUsingDirective obj)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
289public int GetHashCode(MethodSymbol op)
BoundTree\UnboundLambda.cs (1)
1442public int GetHashCode([DisallowNull] (NamedTypeSymbol Type, bool IsExpressionTree) obj)
Compilation\CSharpCompilation.cs (1)
2497public int GetHashCode((ImmutableArray<byte> ContentHash, int Position) obj)
FlowAnalysis\NullableWalker.cs (2)
13481public int GetHashCode((NullabilityInfo info, TypeSymbol? type) obj) 13504public int GetHashCode((BoundNode? expr, Symbol symbol) obj)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
106public int GetHashCode((TypeSymbol? constrainedToTypeOpt, TypeSymbol delegateType, MethodSymbol targetMethod) conversion)
Symbols\ConversionSignatureComparer.cs (1)
56public int GetHashCode(MethodSymbol member)
Symbols\MemberSignatureComparer.cs (1)
503public int GetHashCode(Symbol? member)
Symbols\TypeSymbol.cs (1)
2384public int GetHashCode(Symbol obj)
Syntax\SyntaxKindEqualityComparer.cs (1)
18public int GetHashCode(SyntaxKind obj)
Utilities\ContentHashComparer.cs (1)
24public int GetHashCode(ReadOnlyMemory<byte> obj)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
54public int GetHashCode(ImmutableDictionary<string, ImmutableArray<(string filePath, string content)>>? obj)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
15882public int GetHashCode(SyntaxReference obj)
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
134public int GetHashCode(CompletionItem obj)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
277int IEqualityComparer<IParameterSymbol>.GetHashCode(IParameterSymbol obj)
ConvertToExtension\ExtensionMethodEqualityComparer.cs (3)
59public int GetHashCode([DisallowNull] AttributeData obj) 110public int GetHashCode([DisallowNull] ITypeParameterSymbol obj) 139public int GetHashCode(ExtensionMethodInfo obj)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\ExpressionSimplifier.CandidateSymbolEqualityComparer.cs (1)
34public int GetHashCode(ISymbol obj)
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.EditorFeatures (5)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
96int IEqualityComparer<DiagnosticDescriptor>.GetHashCode(DiagnosticDescriptor obj)
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
123public int GetHashCode(NamingRule rule) 146public int GetHashCode(NamingStyle style) 180public int GetHashCode(SymbolSpecification symbolSpecification)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
31public int GetHashCode(TagSpan<TTag> obj)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\SymbolEquivalenceComparerTests.cs (1)
1892public int GetHashCode(IAssemblySymbol obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (3)
NameComparer.cs (1)
52public int GetHashCode(Name obj)
ParameterComparer.cs (1)
21public int GetHashCode(ParameterSignature obj)
TypeComparer.cs (1)
65public int GetHashCode(TypeSignature obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
ResultProviderTestBase.cs (1)
559int IEqualityComparer<DkmCustomUIVisualizerInfo>.GetHashCode(DkmCustomUIVisualizerInfo obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.CodeAnalysis.Features (17)
AddImport\AbstractAddImportFeatureService.cs (1)
449int IEqualityComparer<PortableExecutableReference>.GetHashCode(PortableExecutableReference obj)
CodeLens\LocationComparer.cs (1)
28public int GetHashCode(Location obj)
Completion\CompletionService.ProviderManager.cs (1)
246int IEqualityComparer<ImmutableHashSet<string>>.GetHashCode([DisallowNull] ImmutableHashSet<string> obj)
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
226public int GetHashCode(SymbolAndSelectionInfo symbol)
Completion\Providers\UnionCompletionItemComparer.cs (1)
23public int GetHashCode(CompletionItem obj)
Diagnostics\Service\ChecksumAndAnalyzersEqualityComparer.cs (1)
27public int GetHashCode((Checksum checksum, ImmutableArray<DiagnosticAnalyzer> analyzers) obj)
Diagnostics\Service\DiagnosticAnalyzerComparer.cs (1)
27public int GetHashCode(DiagnosticAnalyzer obj) => GetAnalyzerIdAndLastWriteTime(obj).GetHashCode();
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
229public int GetHashCode(Diagnostic? obj)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2528public int GetHashCode(IAssemblySymbol? obj) 4196public int GetHashCode([DisallowNull] SemanticEditInfo obj) 6929public int GetHashCode(TypedConstant obj) 6941public int GetHashCode(KeyValuePair<string, TypedConstant> obj)
EditAndContinue\RunningProjectOptions.cs (1)
68public int GetHashCode((string path, string? tfm) obj)
NavigateTo\NavigateToSearchResultComparer.cs (1)
31public int GetHashCode(INavigateToSearchResult? obj)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
438public int GetHashCode((IPropertySymbol property, ReferenceLocation location) obj)
Shared\Utilities\LinkedFilesSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ISymbol symbol)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
110int IEqualityComparer<ISymbol>.GetHashCode(ISymbol obj)
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.LanguageServer (2)
HostWorkspace\LoadedProject.cs (1)
309public int GetHashCode(DocumentFileInfo obj)
HostWorkspace\ProjectToLoad.cs (1)
23public int GetHashCode([DisallowNull] ProjectToLoad obj)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
485public int GetHashCode([DisallowNull] ImmutableArray<CharacterSetModificationRule> obj)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CodeAnalysis.PublicApiAnalyzers (13)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
AbstractResxGenerator.cs (1)
310public int GetHashCode(ImmutableDictionary<TKey, TValue>? obj)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Microsoft.CodeAnalysis.Test.Utilities (7)
Assert\AssertEx.cs (2)
120int IEqualityComparer<T>.GetHashCode(T obj) 885public int GetHashCode(string str) => str.Trim().GetHashCode();
Assert\AssertXml.cs (2)
227public int GetHashCode(XElement element) 258public int GetHashCode(XElement element)
InstrumentationChecker.cs (1)
422public int GetHashCode(string obj)
Mocks\TestEqualityComparer.cs (1)
18public int GetHashCode([DisallowNull] T obj)
SourceGeneration\LambdaComparer.cs (1)
24public int GetHashCode([DisallowNull] T obj) => _hashCode.HasValue ? _hashCode.Value : EqualityComparer<T>.Default.GetHashCode(obj);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
Microsoft.CodeAnalysis.UnitTests (20)
Collections\BadHasher.cs (1)
33public int GetHashCode(T obj)
Collections\EverythingEqual.cs (1)
39public int GetHashCode(T obj)
Collections\Extensions\EnumerableExtensionsTests.cs (2)
72public int GetHashCode(int obj) => throw new NotImplementedException(); 168public int GetHashCode(T obj) => _hashCode(obj);
Collections\Extensions\ImmutableArrayExtensionsTests.cs (2)
132int IEqualityComparer<int>.GetHashCode(int x) 553public int GetHashCode(T obj) => _hashCode(obj);
Collections\Extensions\ListExtensionsTests.cs (1)
22public int GetHashCode(T obj) => _hashCode(obj);
Collections\HashSet\TestingTypes.cs (9)
30public int GetHashCode(int obj) 97public int GetHashCode(int obj) 116public int GetHashCode(int obj) 147public int GetHashCode(int x) 166public int GetHashCode(int x) 237public int GetHashCode(int obj) 256public int GetHashCode(SimpleInt obj) 392public int GetHashCode(T obj) 407public int GetHashCode(T? obj) => 42;
Collections\ImmutableSegmentedHashSetBuilderTest.cs (1)
365public int GetHashCode(int obj) => (obj >> 1).GetHashCode();
Collections\ImmutableSegmentedListTest.cs (1)
956public int GetHashCode(Person obj)
Collections\IndexOfTests.cs (1)
173public int GetHashCode(int obj)
Text\TextChangeTests.cs (1)
285public int GetHashCode(TextLine obj)
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_XmlLiterals.vb (1)
592Private Function IEqualityComparer_GetHashCode(obj As XmlName) As Integer Implements IEqualityComparer(Of XmlName).GetHashCode
Declarations\SingleNamespaceDeclaration.vb (1)
66Private Shadows Function GetHashCode(decl1 As SingleNamespaceDeclaration) As Integer Implements IEqualityComparer(Of SingleNamespaceDeclaration).GetHashCode
Symbols\EventSignatureComparer.vb (1)
150Public Overloads Function GetHashCode([event] As EventSymbol) As Integer _
Symbols\MethodSignatureComparer.vb (1)
287Public Overloads Function GetHashCode(method As MethodSymbol) As Integer _
Symbols\PropertySignatureComparer.vb (1)
128Public Overloads Function GetHashCode(prop As PropertySymbol) As Integer _
Symbols\TypeSymbol.vb (1)
765Public Overloads Function GetHashCode(obj As Symbol) As Integer Implements IEqualityComparer(Of Symbol).GetHashCode
Microsoft.CodeAnalysis.Workspaces (19)
FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs (1)
38public int GetHashCode(ISymbol obj)
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
86public int GetHashCode(ImmutableArray<ITypeSymbol> obj)
Shared\Extensions\INamespaceSymbolExtensions.Comparer.cs (1)
18public int GetHashCode(INamespaceSymbol? obj)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
Workspace\Host\PersistentStorage\DocumentKey.cs (1)
51public int GetHashCode(DocumentKey obj)
Workspace\Solution\SolutionState.CachingFilePathComparer.cs (1)
51public int GetHashCode([DisallowNull] string obj)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.AnalyzerReferencePathComparer.cs (1)
24public int GetHashCode(AnalyzerReference? obj)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\CharMemoryEqualityComparer.cs (1)
21public int GetHashCode(ReadOnlyMemory<char> mem) => Hash.GetFNVHashCode(mem.Span);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
36int IEqualityComparer<string>.GetHashCode(string s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\BinderEquivalence.cs (1)
58public int GetHashCode(ICSharpBinder obj) => obj.GetGetBinderEquivalenceHash();
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
417public int GetHashCode(BuildEventContext x) => x.ProjectContextId + (x.NodeId << 24);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\AssetComparer.cs (1)
35public int GetHashCode(Asset asset)
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
115int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.DotNet.SignTool (2)
src\ByteSequenceComparer.cs (2)
83int IEqualityComparer<byte[]>.GetHashCode(byte[] x) 93int IEqualityComparer<ImmutableArray<byte>>.GetHashCode(ImmutableArray<byte> x)
Microsoft.DotNet.XUnitAssert.Tests (25)
AsyncCollectionAssertsTests.cs (7)
350 public int GetHashCode(int obj) => throw new NotImplementedException(); 535 public int GetHashCode(int obj) => throw new NotImplementedException(); 830 public int GetHashCode(int obj) => throw new NotImplementedException(); 849 public int GetHashCode(EnumerableItem obj) => 896 public int GetHashCode(int obj) => 1217 public int GetHashCode(int obj) => throw new NotImplementedException(); 1255 public int GetHashCode(int obj) =>
CollectionAssertsTests.cs (10)
384 public int GetHashCode(int obj) => throw new NotImplementedException(); 613 public int GetHashCode(int obj) => throw new NotImplementedException(); 909 public int GetHashCode(EnumerableItem obj) => 1071 public int GetHashCode(int obj) => throw new NotImplementedException(); 1089 public int GetHashCode(EnumerableItem obj) => 1126 public int GetHashCode(int obj) => 1590 public int GetHashCode(BitArray obj) => 1801 public int GetHashCode(int obj) => throw new NotImplementedException(); 1826 public int GetHashCode(int obj) => 2257 public int GetHashCode(BitArray obj) =>
EqualityAssertsTests.cs (8)
100 public int GetHashCode(T obj) => throw new NotImplementedException(); 122 public int GetHashCode(int obj) => 145 public int GetHashCode(IEnumerable<int> obj) => 1067 public int GetHashCode([DisallowNull] IEnumerable obj) => 2384 public int GetHashCode(T obj) => throw new NotImplementedException(); 2406 public int GetHashCode(int obj) => 2429 public int GetHashCode(IEnumerable<int> obj) => 2452 public int GetHashCode(string obj) =>
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
ScenarioRunResultTests.cs (7)
300public int GetHashCode(ChatMessage obj) 313public int GetHashCode(ChatResponse obj) 324public int GetHashCode(EvaluationMetricInterpretation obj) 352public int GetHashCode(EvaluationContext obj) 375public int GetHashCode(AIContent obj) 386public int GetHashCode(EvaluationDiagnostic obj) 406public int GetHashCode(ChatTurnDetails obj)
Microsoft.Extensions.DependencyModel (1)
DependencyContext.cs (1)
89public int GetHashCode(T obj)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ByteArrayEqualityComparer.cs (1)
21public int GetHashCode(byte[] x)
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
153public int GetHashCode(KeyValuePair<Type, object> obj)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
FileInfoComparer.cs (1)
32public int GetHashCode(IFileInfo obj) => 0;
Microsoft.Extensions.Http.Resilience (1)
Internal\HttpKey.cs (1)
18public int GetHashCode([DisallowNull] HttpKey obj) => StringComparer.Ordinal.GetHashCode(obj.Name);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\SyntaxValueProvider.ImmutableArrayValueComparer.cs (1)
20public int GetHashCode(ImmutableArray<T> obj)
Microsoft.Extensions.Primitives (1)
StringSegmentComparer.cs (1)
62public int GetHashCode(StringSegment obj)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
tests\Shared\Logging\LogValuesAssert.cs (1)
64public int GetHashCode(KeyValuePair<string, object> obj)
Microsoft.Extensions.Telemetry (1)
Buffering\StringifyComprarer.cs (1)
31public int GetHashCode(KeyValuePair<string, object?> obj)
Microsoft.Extensions.Validation.ValidationsGenerator (2)
Extensions\IncrementalValuesProviderExtensions.cs (1)
123public int GetHashCode(ImmutableArray<T> obj)
Models\ValidatableTypeComparer.cs (1)
26public int GetHashCode(ValidatableType? obj)
Microsoft.Interop.ComInterfaceGenerator (3)
ComInterfaceInfo.cs (1)
183public int GetHashCode((ComInterfaceInfo, INamedTypeSymbol) obj) => SymbolEqualityComparer.Default.GetHashCode(obj.Item2);
Comparers.cs (2)
43public int GetHashCode(ImmutableArray<T> obj) 65public int GetHashCode((T, U) obj)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Comparers.cs (3)
47public int GetHashCode(ImmutableArray<T> obj) 69public int GetHashCode((T, U) obj) 99public int GetHashCode((T, U, V, W) obj)
Microsoft.Interop.LibraryImportGenerator (2)
Comparers.cs (2)
43public int GetHashCode(ImmutableArray<T> obj) 65public int GetHashCode((T, U) obj)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
Comparers.cs (2)
43public int GetHashCode(ImmutableArray<T> obj) 65public int GetHashCode((T, U) obj)
Microsoft.Interop.SourceGeneration (2)
SyntaxEquivalentComparer.cs (2)
32public int GetHashCode(SyntaxNode obj) 37public int GetHashCode(SyntaxToken obj)
Microsoft.Maui (1)
HotReload\HotReloadExtensions.cs (1)
62 public int GetHashCode(MethodInfo obj) => obj.MethodHandle.GetHashCode();
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
51 public int GetHashCode(TypeReference obj)
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
788 public int GetHashCode(Compilation obj)
Microsoft.ML.AutoML (1)
AutoMLExperiment\TrialResult.cs (1)
45public int GetHashCode(TrialResult obj)
Microsoft.ML.Core (1)
Data\ReadOnlyMemoryUtils.cs (1)
266public int GetHashCode(ReadOnlyMemory<char> obj)
Microsoft.ML.CpuMath.UnitTests (2)
UnitTests.cs (2)
1009public int GetHashCode(float a) 1022public int GetHashCode(float a)
Microsoft.ML.Data (4)
Commands\TypeInfoCommand.cs (1)
65public int GetHashCode(ISet<InternalDataKind> obj)
Transforms\Hashing.cs (2)
1544public int GetHashCode(ReadOnlyMemory<char> obj) 1566public int GetHashCode(KeyValuePair<int, T> obj)
Transforms\InvertHashUtils.cs (1)
139public int GetHashCode(Pair obj)
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
418public int GetHashCode(Parameter obj)
Microsoft.ML.Tokenizers (1)
Utils\ByteArrayComparer.cs (1)
18public int GetHashCode(ReadOnlyMemory<byte> x)
Microsoft.VisualStudio.LanguageServices (1)
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
461public int GetHashCode((ProjectId, IAssemblySymbol) obj)
PresentationCore (1)
System\Windows\Media\FontEmbeddingManager.cs (1)
105public int GetHashCode(Uri obj)
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2957int IEqualityComparer<ItemInfo>.GetHashCode(ItemInfo x)
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
77public int GetHashCode(Uri uri)
Roslyn.Diagnostics.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
System.Collections (1)
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
34public int GetHashCode(SortedSet<T> obj)
System.Collections.Immutable (5)
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
307public abstract int GetHashCode(string s);
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (2)
115public int GetHashCode(HashBucket obj) 140int IEqualityComparer<KeyValuePair<TKey, TValue>>.GetHashCode(KeyValuePair<TKey, TValue> obj)
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
40public int GetHashCode(HashBucket obj) => throw new NotSupportedException();
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
49public int GetHashCode(HashBucket obj) => throw new NotSupportedException();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
256public int GetHashCode(Type obj) => obj.FullName!.GetHashCode();
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
268public int GetHashCode(ParameterInfo obj)
System.Data.Common (3)
System\Data\Common\ObjectStorage.cs (1)
658public int GetHashCode(KeyValuePair<Type, XmlRootAttribute> obj)
System\Data\DataRowComparer.cs (1)
176public int GetHashCode(TRow row)
System\Data\DataView.cs (1)
89public int GetHashCode(DataRow obj) => obj._objectID;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesActivitySourceListener.cs (1)
239public int GetHashCode(SpecLookupKey obj)
System.Formats.Cbor (2)
System\Formats\Cbor\Reader\CborReader.Map.cs (1)
213public int GetHashCode((int Offset, int Length) value)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
280public int GetHashCode((int Offset, int Length) range)
System.IO.Packaging (1)
System\IO\Packaging\ZipPackage.cs (1)
745int IEqualityComparer<string>.GetHashCode(string extension)
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (1)
33public int GetHashCode(Wrapper<T> x)
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
38public abstract int GetHashCode([DisallowNull] T obj);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
56public int GetHashCode(HashSet<T>? obj)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (1)
51public virtual int GetHashCode(string? obj)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
221public int GetHashCode([DisallowNull] T obj)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
25public int GetHashCode([DisallowNull] string? key)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (1)
209public abstract int GetHashCode(string obj);
System.Private.Windows.Core (2)
System\Collections\Specialized\CompatibleIComparer.cs (1)
15public int GetHashCode([DisallowNull] string obj)
System\Reflection\Metadata\TypeNameComparer.cs (1)
47public int GetHashCode(TypeName obj)
System.Private.Windows.Core.TestUtilities (1)
XUnit\FloatingPointToleranceComparerer.cs (1)
21public int GetHashCode([DisallowNull] T obj) => obj.GetHashCode();
System.Private.Xml.Linq (2)
System\Xml\Linq\XNodeEqualityComparer.cs (1)
52public int GetHashCode(XNode obj)
System\Xml\Schema\XNodeValidator.cs (1)
392public int GetHashCode(XmlSchemaInfo? si)
System.Reflection.Metadata (2)
System\Reflection\Metadata\HandleComparer.cs (2)
31public int GetHashCode(Handle obj) 36public int GetHashCode(EntityHandle obj)
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\FastResourceComparer.cs (1)
25public int GetHashCode([DisallowNull] string? key)
System\Resources\Extensions\TypeNameComparer.cs (1)
120public int GetHashCode(string assemblyQualifiedTypeName)
System.Resources.Writer (1)
System\Resources\__FastResourceComparer.cs (1)
17public int GetHashCode(string key)
System.ServiceModel.Primitives (4)
System\IdentityModel\Claims\ClaimComparer.cs (1)
176public int GetHashCode(Claim claim)
System\ServiceModel\ChannelFactoryRefCache.cs (1)
83public int GetHashCode(EndpointTrait<TChannel> obj)
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
970public int GetHashCode(QName obj)
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
115public int GetHashCode(byte[] o)
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.PropertyNameSet.cs (1)
151public int GetHashCode(ReadOnlyMemory<byte> name)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
546public int GetHashCode(JsonSerializerOptions options)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
389public int GetHashCode([DisallowNull] ImmutableArray<object> obj)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
979int IEqualityComparer<object>.GetHashCode(object x)
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
49int IEqualityComparer<object>.GetHashCode(object? x)
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
238public int GetHashCode(object obj)
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
427int IEqualityComparer<X509Certificate2>.GetHashCode([DisallowNull] X509Certificate2 obj) =>
Test.Utilities (12)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
Text.Analyzers (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
67public int GetHashCode(SegmentedHashSet<T>? obj)
src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
55public int GetHashCode(object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
848public int GetHashCode(TDirectiveTriviaSyntax obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\AbstractUnnecessaryImportsProvider.cs (1)
49int IEqualityComparer<TSyntaxNode>.GetHashCode([DisallowNull] TSyntaxNode obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (1)
49public int GetHashCode(SymbolKey obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
22public int GetHashCode(ImmutableArray<T> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
20public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (1)
173public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
61public int GetHashCode(IParameterSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
21public int GetHashCode(ITypeSymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
28public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
46int IEqualityComparer<T>.GetHashCode(T obj)
xunit.assert (4)
Sdk\AssertEqualityComparer.cs (2)
385 public int GetHashCode(T obj) => 427 public int GetHashCode(T? obj)
Sdk\AssertEqualityComparerAdapter.cs (1)
75 public int GetHashCode(T obj) =>
Sdk\AssertHelper.cs (1)
788 public int GetHashCode([DisallowNull] object obj) =>
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (1)
100public int GetHashCode(T obj)
271 references to GetHashCode
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (1)
196return _comparer.GetHashCode(this);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
93return GetClaimComparer().GetHashCode(this.IdentityClaim);
GenerateDocumentationAndConfigFiles (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Metrics (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Metrics.Legacy (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.AspNetCore.App.CodeFixes (1)
src\Shared\HashCode.cs (1)
309Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\HashCode.cs (1)
309Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
StaticRouteHandlerModel\EndpointHttpMethodComparer.cs (1)
16public int GetHashCode(Endpoint obj) => OrdinalComparer.GetHashCode(obj.HttpMethod);
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
src\Shared\HashCode.cs (1)
309Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
Microsoft.AspNetCore.Routing (1)
DecisionTree\DecisionCriterionValueEqualityComparer.cs (1)
22return InnerComparer.GetHashCode(obj.Value);
Microsoft.CodeAnalysis (12)
Collections\ConcurrentCache.cs (2)
47var hash = _keyComparer.GetHashCode(key); 62int hash = _keyComparer.GetHashCode(key);
Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
DiagnosticAnalyzer\AdditionalTextComparer.cs (1)
55return Hash.Combine(PathUtilities.Comparer.GetHashCode(obj.Path),
SourceGeneration\UserFunction.cs (1)
51return _inner.GetHashCode(obj);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.Analyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.CodeStyle (9)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Collections.Package (7)
Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.Extensions.Package (8)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Features (2)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
459Hash.Combine(s_symbolIdComparer.GetHashCode(_symbolId),
SignatureHelp\AbstractSignatureHelpProvider.SymbolKeySignatureHelpItem.cs (1)
44return comparer.GetHashCode(SymbolKey.Value);
Microsoft.CodeAnalysis.InteractiveHost (7)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Threading.Package (7)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_XmlLiterals.vb (1)
592Private Function IEqualityComparer_GetHashCode(obj As XmlName) As Integer Implements IEqualityComparer(Of XmlName).GetHashCode
Declarations\SingleNamespaceDeclaration.vb (1)
66Private Shadows Function GetHashCode(decl1 As SingleNamespaceDeclaration) As Integer Implements IEqualityComparer(Of SingleNamespaceDeclaration).GetHashCode
Symbols\EventSignatureComparer.vb (1)
151Implements IEqualityComparer(Of EventSymbol).GetHashCode
Symbols\MethodSignatureComparer.vb (1)
288Implements IEqualityComparer(Of MethodSymbol).GetHashCode
Symbols\PropertySignatureComparer.vb (1)
129Implements IEqualityComparer(Of PropertySymbol).GetHashCode
Symbols\TypeSymbol.vb (1)
765Public Overloads Function GetHashCode(obj As Symbol) As Integer Implements IEqualityComparer(Of Symbol).GetHashCode
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\IStreamingFindReferencesProgress.cs (1)
56hashCode += MetadataUnifyingEquivalenceComparer.Instance.GetHashCode(symbol);
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.Extensions.DependencyModel (1)
HashCodeCombiner.cs (1)
52int hashCode = value != null ? comparer.GetHashCode(value) : 0;
Microsoft.Extensions.Validation.ValidationsGenerator (1)
src\Shared\HashCode.cs (1)
309Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
Microsoft.Maui.Controls.BindingSourceGen (1)
HashCode.cs (1)
143 return (hashCode * 397) ^ (value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
Microsoft.ML.Data (2)
Transforms\Hashing.cs (1)
1568return Hashing.CombineHash(obj.Key, _tComparer.GetHashCode(obj.Value));
Transforms\InvertHashUtils.cs (1)
141return _tComparer.GetHashCode(obj.Value);
Roslyn.Diagnostics.Analyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
System.Collections (4)
System\Collections\Generic\OrderedDictionary.cs (3)
624hashCode = (uint)(comparer?.GetHashCode(key) ?? key.GetHashCode()); 669hashCode = (uint)comparer.GetHashCode(key); 1115newEntries[i].HashCode = (uint)comparer.GetHashCode(newEntries[i].Key);
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
43hashCode ^= (_memberEqualityComparer.GetHashCode(t) & 0x7FFFFFFF);
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentDictionary.cs (3)
305return comparer is null ? key.GetHashCode() : comparer.GetHashCode(key); 309return _comparerIsDefaultForClasses ? key.GetHashCode() : comparer.GetHashCode(key); 2025int hashCode = upgradeComparer is null ? current._hashcode : upgradeComparer.GetHashCode(current._key);
System.Collections.Immutable (23)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
25int hashCode = comparer.GetHashCode(key);
System\Collections\Frozen\DefaultFrozenSet.cs (1)
22int hashCode = item is null ? 0 : comparer.GetHashCode(item);
System\Collections\Frozen\ItemsFrozenSet.cs (1)
30hashCodes[i] = entries[i] is T t ? Comparer.GetHashCode(t) : 0;
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
32hashCodes[i] = Comparer.GetHashCode(entries[i].Key);
System\Collections\Immutable\ImmutableDictionary_2.Comparers.cs (2)
117return this.KeyComparer.GetHashCode(obj.FirstValue.Key); 142return _keyComparer.GetHashCode(obj.Key);
System\Collections\Immutable\ImmutableDictionary_2.cs (9)
369int hashCode = this.KeyComparer.GetHashCode(key); 875int hashCode = origin.KeyComparer.GetHashCode(key); 890int hashCode = origin.KeyComparer.GetHashCode(keyValuePair.Key); 907int hashCode = origin.KeyComparer.GetHashCode(key); 923int hashCode = origin.KeyComparer.GetHashCode(equalKey); 942int hashCode = origin.KeyComparer.GetHashCode(key); 966int hashCode = origin.KeyComparer.GetHashCode(pair.Key); 990int hashCode = origin.KeyComparer.GetHashCode(pair.Key); 1009int hashCode = origin.KeyComparer.GetHashCode(key);
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
208int hashCode = equalValue != null ? _equalityComparer.GetHashCode(equalValue) : 0;
System\Collections\Immutable\ImmutableHashSet_1.cs (7)
210int hashCode = equalValue != null ? _equalityComparer.GetHashCode(equalValue) : 0; 617int hashCode = item != null ? origin.EqualityComparer.GetHashCode(item) : 0; 636int hashCode = item != null ? origin.EqualityComparer.GetHashCode(item) : 0; 658int hashCode = item != null ? origin.EqualityComparer.GetHashCode(item) : 0; 679int hashCode = item != null ? origin.EqualityComparer.GetHashCode(item) : 0; 702int hashCode = item != null ? origin.EqualityComparer.GetHashCode(item) : 0; 812int hashCode = item != null ? equalityComparer.GetHashCode(item) : 0;
System.Linq (1)
System\Linq\Lookup.cs (1)
201return (key is null) ? 0 : _comparer.GetHashCode(key) & 0x7FFFFFFF;
System.Linq.AsyncEnumerable (1)
System\Linq\ToLookupAsync.cs (1)
350int hashCode = (key is null) ? 0 : _comparer.GetHashCode(key) & 0x7FFFFFFF;
System.Linq.Parallel (4)
System\Linq\Parallel\Partitioning\HashRepartitionStream.cs (2)
93(element == null ? NULL_ELEMENT_HASH_CODE : (_elementComparer?.GetHashCode(element) ?? element.GetHashCode()))) 101(key == null ? NULL_ELEMENT_HASH_CODE : (_keyComparer?.GetHashCode(key) ?? key.GetHashCode())))
System\Linq\Parallel\Utils\HashLookup.cs (1)
64(key == null ? 0 : (comparer?.GetHashCode(key) ?? key.GetHashCode()));
System\Linq\Parallel\Utils\WrapperEqualityComparer.cs (1)
37return value == null ? 0 : _comparer.GetHashCode(value);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (6)
446uint hashCode = (uint)comparer.GetHashCode(key); 527uint hashCode = (uint)((typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 1092uint hashCode = (uint)((typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 1269entries[i].hashCode = (uint)comparer.GetHashCode(entries[i].key); 1310uint hashCode = (uint)(typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1383uint hashCode = (uint)(typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (4)
256int hashCode = item != null ? comparer.GetHashCode(item) : 0; 306item is not null ? comparer!.GetHashCode(item) : 1308entry.HashCode = entry.Value != null ? comparer.GetHashCode(entry.Value) : 0; 1457hashCode = value != null ? comparer.GetHashCode(value) : 0;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IAlternateEqualityComparer.cs (1)
27/// The result of this method should return the same hash code as would invoking the <see cref="IEqualityComparer{T}.GetHashCode"/>
src\libraries\System.Private.CoreLib\src\System\HashCode.cs (1)
309Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
System.ServiceModel.Primitives (2)
System\IdentityModel\Claims\Claim.cs (1)
236return _comparer.GetHashCode(this);
System\ServiceModel\EndpointIdentity.cs (1)
120return GetClaimComparer().GetHashCode(IdentityClaim);
Test.Utilities (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Text.Analyzers (11)
src\Compilers\Core\Portable\Collections\SmallDictionary.cs (1)
68return Comparer.GetHashCode(k);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
448var hashCode = (uint)comparer!.GetHashCode(key); 525var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 712var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 789var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
259var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 305item is not null ? comparer!.GetHashCode(item) : 1064hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (1)
318Add(value is null ? 0 : (comparer?.GetHashCode(value) ?? value.GetHashCode()));
src\RoslynAnalyzers\Utilities\Compiler\SmallDictionary.cs (1)
70return Comparer.GetHashCode(k);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
90=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
xunit.assert (2)
Sdk\AssertEqualityComparerAdapter.cs (2)
68 innerComparer.GetHashCode((T)obj); 76 innerComparer.GetHashCode(obj);