358 implementations of GetHashCode
Aspire.Dashboard (2)
Otlp\Model\OtlpApplication.cs (1)
334public int GetHashCode([DisallowNull] KeyValuePair<string, string>[] obj)
Otlp\Model\OtlpInstrument.cs (1)
131public int GetHashCode([DisallowNull] ReadOnlyMemory<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.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)
693public 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)
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.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)
712public 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 (1)
Comparers\OpenApiTagComparer.cs (1)
38public int GetHashCode(OpenApiTag obj) => obj.Name.GetHashCode();
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 (9)
AssemblyNameComparer.cs (1)
96public int GetHashCode(AssemblyNameExtension obj)
BackEnd\Components\ProjectCache\ProjectCacheDescriptorEqualityComparer.cs (1)
35public int GetHashCode(ProjectCacheDescriptor obj)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
170public int GetHashCode(DirectoryInfo value)
Instance\ProjectItemInstance.cs (1)
2341public int GetHashCode(ProjectItemInstance obj)
Instance\TaskRegistry.cs (1)
929public int GetHashCode(RegisteredTaskIdentity obj)
Logging\EvaluationLocationIdAgnosticComparer.cs (1)
38public int GetHashCode(EvaluationLocation obj)
Logging\ParallelLogger\ParallelLoggerHelpers.cs (2)
235public int GetHashCode(T x) 265public int GetHashCode(T x)
MSBuildNameIgnoreCaseComparer.cs (1)
37public int GetHashCode(string obj)
Microsoft.Build.BuildCheck.UnitTests (1)
EditorConfig_Tests.cs (1)
110int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.Build.Engine.UnitTests (21)
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
1890public int GetHashCode(T obj)
TestComparers\ProjectInstanceModelTestComparers.cs (15)
74public int GetHashCode(ProjectInstance obj) 110public int GetHashCode(ProjectTargetInstance obj) 143public int GetHashCode(ProjectTargetInstanceChild obj) 162public int GetHashCode(ProjectItemGroupTaskInstance obj) 199public int GetHashCode(ProjectItemGroupTaskItemInstance obj) 218public int GetHashCode(ProjectItemGroupTaskMetadataInstance obj) 237public int GetHashCode(ProjectPropertyGroupTaskInstance obj) 254public int GetHashCode(ProjectItemDefinitionInstance obj) 270public int GetHashCode(TargetSpecification obj) 289public int GetHashCode(ProjectPropertyGroupTaskPropertyInstance obj) 308public int GetHashCode(ProjectOnErrorInstance obj) 336public int GetHashCode(ProjectTaskInstance obj) 372public int GetHashCode(ProjectTaskInstanceChild obj) 393public int GetHashCode(ProjectTaskOutputItemInstance obj) 414public int GetHashCode(ProjectTaskOutputPropertyInstance obj)
TestComparers\TaskRegistryComparers.cs (5)
37public int GetHashCode(TaskRegistry obj) 65public int GetHashCode(TaskRegistry.RegisteredTaskRecord obj) 92public int GetHashCode(TaskRegistry.RegisteredTaskRecord.ParameterGroupAndTaskElementRecord obj) 110public int GetHashCode(TaskPropertyInfo obj) 144public int GetHashCode(Toolset obj)
Microsoft.Build.Tasks.Core (2)
AssemblyNameComparer.cs (1)
96public int GetHashCode(AssemblyNameExtension obj)
MSBuildNameIgnoreCaseComparer.cs (1)
37public int GetHashCode(string obj)
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
2056public int GetHashCode(ElementLocation obj)
Microsoft.Build.Utilities.Core (1)
MSBuildNameIgnoreCaseComparer.cs (1)
37public int GetHashCode(string 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)
430public 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\EmptyComparer.cs (1)
26int IEqualityComparer<object>.GetHashCode(object s)
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (2)
28public int GetHashCode(ReadOnlyMemory<char> obj) 53public int GetHashCode(ReadOnlyMemory<char> s)
InternalUtilities\ReferenceEqualityComparer.cs (1)
26int IEqualityComparer<object?>.GetHashCode(object? a)
InternalUtilities\StringOrdinalComparer.cs (1)
36int IEqualityComparer<string>.GetHashCode(string s)
MetadataReader\PEModule.cs (1)
790public int GetHashCode(NamespaceDefinitionHandle obj)
PEWriter\MemberRefComparer.cs (1)
58public int GetHashCode(ITypeMemberReference memberRef)
PEWriter\MetadataWriter.cs (1)
4342int 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)
594public int GetHashCode(MetadataReference reference)
SourceGeneration\UserFunction.cs (1)
47public int GetHashCode([DisallowNull] T obj)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
65public int GetHashCode(SegmentedHashSet<T>? obj)
Symbols\Attributes\CommonAttributeDataComparer.cs (1)
38public int GetHashCode(AttributeData attr)
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.CodeStyle (12)
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\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
26int IEqualityComparer<object?>.GetHashCode(object? a)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
65public 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)
43int 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\Core\Utilities\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
18public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
171public int GetHashCode(ISymbol? x)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
29public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
50int IEqualityComparer<T>.GetHashCode(T obj)
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\SegmentedHashSetEqualityComparer`1.cs (1)
65public int GetHashCode(SegmentedHashSet<T>? obj)
Microsoft.CodeAnalysis.CSharp (12)
Binder\DecisionDagBuilder.cs (1)
1966public int GetHashCode(DagState x)
Binder\Imports.cs (1)
220int IEqualityComparer<NamespaceOrTypeAndUsingDirective>.GetHashCode(NamespaceOrTypeAndUsingDirective obj)
BoundTree\UnboundLambda.cs (1)
1442public int GetHashCode([DisallowNull] (NamedTypeSymbol Type, bool IsExpressionTree) obj)
Compilation\CSharpCompilation.cs (1)
2441public int GetHashCode((ImmutableArray<byte> ContentHash, int Position) obj)
FlowAnalysis\NullableWalker.cs (2)
12725public int GetHashCode((NullabilityInfo info, TypeSymbol? type) obj) 12748public int GetHashCode((BoundNode? expr, Symbol symbol) obj)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
100public int GetHashCode((TypeSymbol? constrainedToTypeOpt, TypeSymbol delegateType, MethodSymbol targetMethod) conversion)
Symbols\ConversionSignatureComparer.cs (1)
56public int GetHashCode(SourceUserDefinedConversionSymbol member)
Symbols\MemberSignatureComparer.cs (1)
532public int GetHashCode(Symbol? member)
Symbols\TypeSymbol.cs (1)
2360public 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)
55public 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 (2)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
134public int GetHashCode(CompletionItem obj)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
277int IEqualityComparer<IParameterSymbol>.GetHashCode(IParameterSymbol obj)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\ExpressionSimplifier.CandidateSymbolEqualityComparer.cs (1)
34public int GetHashCode(ISymbol obj)
Microsoft.CodeAnalysis.EditorFeatures (5)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
90public int GetHashCode(DiagnosticAnalyzer obj) => obj.GetAnalyzerIdAndVersion().GetHashCode();
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
124public int GetHashCode(NamingRule rule) 147public int GetHashCode(NamingStyle style) 181public int GetHashCode(SymbolSpecification symbolSpecification)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
32public int GetHashCode(TagSpan<TTag> obj)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Collections\Immutable\Maps\MapTests.cs (1)
127public int GetHashCode(T obj)
Utilities\SymbolEquivalenceComparerTests.cs (1)
1782public int GetHashCode(IAssemblySymbol 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.Utilities (1)
ResultProviderTestBase.cs (1)
560int IEqualityComparer<DkmCustomUIVisualizerInfo>.GetHashCode(DkmCustomUIVisualizerInfo obj)
Microsoft.CodeAnalysis.Features (13)
AddImport\AbstractAddImportFeatureService.cs (1)
448int IEqualityComparer<PortableExecutableReference>.GetHashCode(PortableExecutableReference obj)
CodeLens\LocationComparer.cs (1)
28public int GetHashCode(Location obj)
Completion\CompletionService.ProviderManager.cs (1)
245int IEqualityComparer<ImmutableHashSet<string>>.GetHashCode([DisallowNull] ImmutableHashSet<string> obj)
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
81public int GetHashCode(CompletionItem obj)
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
225public int GetHashCode(SymbolAndSelectionInfo symbol)
Completion\Providers\UnionCompletionItemComparer.cs (1)
23public int GetHashCode(CompletionItem obj)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2344public int GetHashCode(IAssemblySymbol? obj) 3934public int GetHashCode([DisallowNull] SemanticEditInfo obj) 6582public int GetHashCode(TypedConstant obj) 6594public int GetHashCode(KeyValuePair<string, TypedConstant> obj)
NavigateTo\NavigateToSearchResultComparer.cs (1)
31public int GetHashCode(INavigateToSearchResult? 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 (1)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
895public int GetHashCode(string? s)
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 (3)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
458public int GetHashCode(Diagnostic? obj)
Handler\Completion\CompletionResultFactory.cs (1)
467public int GetHashCode([DisallowNull] ImmutableArray<CharacterSetModificationRule> obj)
Workspaces\LspWorkspaceManager.cs (1)
76public int GetHashCode(Uri obj)
Microsoft.CodeAnalysis.Test.Utilities (6)
Assert\AssertEx.cs (2)
120int IEqualityComparer<T>.GetHashCode(T obj) 885public int GetHashCode(string str) => str.Trim().GetHashCode();
Assert\AssertXml.cs (2)
228public int GetHashCode(XElement element) 259public int GetHashCode(XElement element)
InstrumentationChecker.cs (1)
422public int GetHashCode(string obj)
SourceGeneration\LambdaComparer.cs (1)
24public int GetHashCode([DisallowNull] T obj) => _hashCode.HasValue ? _hashCode.Value : EqualityComparer<T>.Default.GetHashCode(obj);
Microsoft.CodeAnalysis.UnitTests (17)
Collections\BadHasher.cs (1)
33public int GetHashCode(T obj)
Collections\EnumerableExtensionsTests.cs (1)
49public int GetHashCode(int obj) => throw new NotImplementedException();
Collections\EverythingEqual.cs (1)
39public int GetHashCode(T 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\ImmutableArrayExtensionsTests.cs (1)
133int IEqualityComparer<int>.GetHashCode(int x)
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)
262public 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 (17)
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\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
26int IEqualityComparer<object?>.GetHashCode(object? a)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
65public 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)
43int 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\Core\Utilities\SymbolEquivalenceComparer.AssemblyComparers.cs (1)
18public int GetHashCode(IAssemblySymbol? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
171public int GetHashCode(ISymbol? x)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\FindSymbols\LinkedFileReferenceLocationEqualityComparer.cs (1)
29public int GetHashCode(ReferenceLocation obj)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (1)
50int IEqualityComparer<T>.GetHashCode(T 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 (8)
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\EmptyComparer.cs (1)
26int IEqualityComparer<object>.GetHashCode(object s)
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\ReferenceEqualityComparer.cs (1)
26int IEqualityComparer<object?>.GetHashCode(object? a)
src\Compilers\Core\Portable\InternalUtilities\StringOrdinalComparer.cs (1)
36int IEqualityComparer<string>.GetHashCode(string s)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
65public int GetHashCode(SegmentedHashSet<T>? 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.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.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.Interop.ComInterfaceGenerator (2)
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)
MSBuild (2)
AssemblyNameComparer.cs (1)
96public int GetHashCode(AssemblyNameExtension obj)
MSBuildNameIgnoreCaseComparer.cs (1)
37public int GetHashCode(string obj)
MSBuildTaskHost (1)
AssemblyNameComparer.cs (1)
96public int GetHashCode(AssemblyNameExtension obj)
PresentationCore (1)
System\Windows\Media\FontEmbeddingManager.cs (1)
106public int GetHashCode(Uri obj)
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2958int IEqualityComparer<ItemInfo>.GetHashCode(ItemInfo x)
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
78public int GetHashCode(Uri uri)
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\DataObject.Composition.TypeNameComparer.cs (1)
33public 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.Text.Json (1)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
551public int GetHashCode(JsonSerializerOptions options)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.cs (1)
385public 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)
239public 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) =>
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)
764 public int GetHashCode([DisallowNull] object obj) =>
xunit.console (1)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (1)
100public int GetHashCode(T obj)
119 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);
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.Routing (1)
DecisionTree\DecisionCriterionValueEqualityComparer.cs (1)
22return InnerComparer.GetHashCode(obj.Value);
Microsoft.Build (1)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (1)
926return _comparer.GetHashCode(item) & Lower31BitMask;
Microsoft.Build.Framework (4)
SegmentedDictionary`2.cs (4)
409var hashCode = (uint)comparer.GetHashCode(key); 485var hashCode = (uint)((SupportsComparerDevirtualization && comparer == null) ? key.GetHashCode() : comparer.GetHashCode(key)); 689var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode()); 761var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode());
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\SegmentedDictionary`2.cs (4)
446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
257var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 303item is not null ? comparer!.GetHashCode(item) : 1062hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.CodeStyle (8)
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
257var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 303item is not null ? comparer!.GetHashCode(item) : 1062hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
87=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Collections.Package (7)
SegmentedDictionary`2.cs (4)
446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
SegmentedHashSet`1.cs (3)
257var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 303item is not null ? comparer!.GetHashCode(item) : 1062hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
450Hash.Combine(s_symbolIdComparer.GetHashCode(_symbolId),
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 (9)
FindSymbols\IStreamingFindReferencesProgress.cs (1)
57hashCode += MetadataUnifyingEquivalenceComparer.Instance.GetHashCode(symbol);
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
257var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 303item is not null ? comparer!.GetHashCode(item) : 1062hashCode = value != null ? comparer!.GetHashCode(value) : 0;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
87=> Hash.Combine(_symbolEquivalenceComparer._assemblyComparer?.GetHashCode(x) ?? 0, currentHash);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
446var hashCode = (uint)comparer!.GetHashCode(key); 523var hashCode = (uint)((SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 710var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 787var hashCode = (uint)(SupportsComparerDevirtualization && typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key));
src\Dependencies\Collections\SegmentedHashSet`1.cs (3)
257var hashCode = item != null ? comparer!.GetHashCode(item) : 0; 303item is not null ? comparer!.GetHashCode(item) : 1062hashCode = value != null ? comparer!.GetHashCode(value) : 0;
Microsoft.Extensions.DependencyModel (1)
HashCodeCombiner.cs (1)
52int hashCode = value != null ? comparer.GetHashCode(value) : 0;
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);
MSBuildTaskHost (3)
Concurrent\ConcurrentDictionary.cs (3)
128Debug.Assert(_comparer.GetHashCode(key) == hashcode); 162Debug.Assert(_comparer.GetHashCode(key) == hashcode); 301int hashcode = _comparer.GetHashCode(key);
System.Collections (4)
System\Collections\Generic\OrderedDictionary.cs (3)
629hashCode = (uint)(comparer?.GetHashCode(key) ?? key.GetHashCode()); 674hashCode = (uint)comparer.GetHashCode(key); 1112newEntries[i].HashCode = (uint)comparer.GetHashCode(newEntries[i].Key);
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
43hashCode ^= (_memberEqualityComparer.GetHashCode(t) & 0x7FFFFFFF);
System.Collections.Concurrent (2)
System\Collections\Concurrent\ConcurrentDictionary.cs (2)
305return comparer is null ? key.GetHashCode() : comparer.GetHashCode(key); 309return _comparerIsDefaultForClasses ? key.GetHashCode() : comparer.GetHashCode(key);
System.Collections.Immutable (22)
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 (8)
362int hashCode = this.KeyComparer.GetHashCode(key); 868int hashCode = origin.KeyComparer.GetHashCode(key); 883int hashCode = origin.KeyComparer.GetHashCode(keyValuePair.Key); 900int hashCode = origin.KeyComparer.GetHashCode(key); 916int hashCode = origin.KeyComparer.GetHashCode(equalKey); 935int hashCode = origin.KeyComparer.GetHashCode(key); 959int hashCode = origin.KeyComparer.GetHashCode(pair.Key); 978int 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)
268int 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)
66(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)
445uint hashCode = (uint)comparer.GetHashCode(key); 526uint hashCode = (uint)((typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 1091uint hashCode = (uint)((typeof(TKey).IsValueType && comparer == null) ? key.GetHashCode() : comparer!.GetHashCode(key)); 1268entries[i].hashCode = (uint)comparer.GetHashCode(entries[i].key); 1309uint hashCode = (uint)(typeof(TKey).IsValueType && comparer == null ? key.GetHashCode() : comparer!.GetHashCode(key)); 1382uint 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.Windows.Forms.Tests (3)
System\Windows\Forms\TypeNameComparerTests.cs (3)
102int hash = comparer.GetHashCode(TypeName.Parse(typeof(int).AssemblyQualifiedName)); 103comparer.GetHashCode(TypeName.Parse(typeof(int).AssemblyQualifiedName)).Should().Be(hash); 104comparer.GetHashCode(TypeName.Parse($"{typeof(int).FullName}, {typeof(int).Assembly.FullName}")).Should().Be(hash);
xunit.assert (2)
Sdk\AssertEqualityComparerAdapter.cs (2)
68 innerComparer.GetHashCode((T)obj); 76 innerComparer.GetHashCode(obj);