85 references to GetHashCode
dotnet-svcutil-lib (3)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (3)
69
int hashcode = RuntimeHelpers.
GetHashCode
(obj);
93
int hashcode = RuntimeHelpers.
GetHashCode
(m_objs[pos]);
97
if (m_objs[j] == null || RuntimeHelpers.
GetHashCode
(m_objs[j]) != hashcode)
Microsoft.AspNetCore.Components (4)
EventCallback.cs (2)
77
=> HashCode.Combine(RuntimeHelpers.
GetHashCode
(Receiver), RuntimeHelpers.
GetHashCode
(Delegate));
EventCallbackOfT.cs (2)
77
=> HashCode.Combine(RuntimeHelpers.
GetHashCode
(Receiver), RuntimeHelpers.
GetHashCode
(Delegate));
Microsoft.AspNetCore.Components.Forms (1)
FieldIdentifier.cs (1)
74
var modelHash = RuntimeHelpers.
GetHashCode
(Model);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ModelBinderFactory.cs (1)
303
return HashCode.Combine(_metadata, RuntimeHelpers.
GetHashCode
(_token));
Microsoft.CodeAnalysis (22)
Collections\CachingFactory.cs (3)
154
var hash = RuntimeHelpers.
GetHashCode
(key);
163
int hash = RuntimeHelpers.
GetHashCode
(key);
179
int hash = RuntimeHelpers.
GetHashCode
(key);
ConstantValueSpecialized.cs (4)
55
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
112
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
433
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
659
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
107
=> Hash.Combine(RuntimeHelpers.
GetHashCode
(_assemblyLoader), FullPath.GetHashCode());
DocumentationComments\DocumentationProvider.NullDocumentationProvider.cs (1)
31
return RuntimeHelpers.
GetHashCode
(this);
IReferenceOrISignature.cs (1)
34
public override int GetHashCode() => RuntimeHelpers.
GetHashCode
(_item);
PEWriter\SymbolEquivalentEqualityComparer.cs (2)
54
return RuntimeHelpers.
GetHashCode
(obj);
89
return RuntimeHelpers.
GetHashCode
(obj);
PEWriter\Units.cs (1)
65
return Hash.Combine(RuntimeHelpers.
GetHashCode
(Definition), StartLine.GetHashCode());
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
600
return RuntimeHelpers.
GetHashCode
(compilationReference.Compilation);
603
return RuntimeHelpers.
GetHashCode
(reference);
Syntax\GreenNode.cs (1)
989
code = Hash.Combine(RuntimeHelpers.
GetHashCode
(child), code);
Syntax\InternalSyntax\SyntaxNodeCache.cs (6)
278
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child1), code);
290
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child1), code);
294
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child2), code);
307
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child1), code);
311
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child2), code);
315
code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(child3), code);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (2)
48
/// This API is a wrapper around <see cref="RuntimeHelpers.
GetHashCode
(object)"/>.
56
return RuntimeHelpers.
GetHashCode
(obj!);
Microsoft.CodeAnalysis.CSharp (15)
BoundTree\BoundDecisionDagNode.cs (7)
43
return Hash.Combine(n.Evaluation.GetHashCode(), RuntimeHelpers.
GetHashCode
(n.Next));
45
return Hash.Combine(n.Test.GetHashCode(), Hash.Combine(RuntimeHelpers.
GetHashCode
(n.WhenFalse), RuntimeHelpers.
GetHashCode
(n.WhenTrue)));
47
return Hash.Combine(RuntimeHelpers.
GetHashCode
(n.WhenExpression), Hash.Combine(RuntimeHelpers.
GetHashCode
(n.WhenFalse), RuntimeHelpers.
GetHashCode
(n.WhenTrue)));
49
return RuntimeHelpers.
GetHashCode
(n.Label);
Symbols\NamedTypeSymbol.cs (1)
792
return RuntimeHelpers.
GetHashCode
(OriginalDefinition);
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (1)
89
return RuntimeHelpers.
GetHashCode
(this);
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
75
return RuntimeHelpers.
GetHashCode
(this);
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (1)
113
return RuntimeHelpers.
GetHashCode
(this);
Symbols\PlaceholderTypeArgumentSymbol.cs (1)
69
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
Symbols\Symbol.cs (1)
831
return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
Symbols\TypeSymbol.cs (1)
314
return RuntimeHelpers.
GetHashCode
(this);
Utilities\ValueSetFactory.BoolValueSet.cs (1)
100
public override int GetHashCode() => System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(this);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
236
RuntimeHelpers.
GetHashCode
(TrustedPlatformAssemblies))));
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestDocumentationCommentProvider.cs (1)
27
public override int GetHashCode() => RuntimeHelpers.
GetHashCode
(this);
Mocks\TestSourceReferenceResolver.cs (1)
62
public override int GetHashCode() => RuntimeHelpers.
GetHashCode
(this);
Microsoft.CodeAnalysis.VisualBasic (15)
Scanner\TokenFactories.vb (5)
32
Function(key) RuntimeHelpers.
GetHashCode
(key.spelling) Xor key.kind
66
code = (code << 1) Xor RuntimeHelpers.
GetHashCode
(value)
108
Dim code = RuntimeHelpers.
GetHashCode
(key.spelling)
111
code = code Xor (RuntimeHelpers.
GetHashCode
(trivia) << 1)
116
code = code Xor RuntimeHelpers.
GetHashCode
(trivia)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
124
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Symbols\ErrorTypeSymbol.vb (1)
402
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Symbols\InstanceTypeSymbol.vb (1)
132
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
60
Return RuntimeHelpers.
GetHashCode
(Me)
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
39
Return RuntimeHelpers.
GetHashCode
(Me)
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
85
Return RuntimeHelpers.
GetHashCode
(Me)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
641
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Symbols\Source\SynthesizedLambdaSymbol.vb (1)
70
Return RuntimeHelpers.
GetHashCode
(Me)
Symbols\SubstitutableTypeParameterSymbol.vb (1)
18
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Symbols\Symbol.vb (1)
857
Return System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(Me)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (2)
48
/// This API is a wrapper around <see cref="RuntimeHelpers.
GetHashCode
(object)"/>.
56
return RuntimeHelpers.
GetHashCode
(obj!);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
112
=> RuntimeHelpers.
GetHashCode
(this);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
98
private static readonly int _nullHashcode = System.Runtime.CompilerServices.RuntimeHelpers.
GetHashCode
(null);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Helpers.cs (1)
58
obj is null ? string.Empty : RuntimeHelpers.
GetHashCode
(obj).ToString(CultureInfo.InvariantCulture);
System.Linq.Expressions (2)
System\Dynamic\BindingRestrictions.cs (1)
296
=> InstanceRestrictionHash ^ RuntimeHelpers.
GetHashCode
(_instance!) ^ _expression.GetHashCode();
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
40
return RuntimeHelpers.
GetHashCode
(Value) ^ Type.GetHashCode();
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (2)
52
/// This API is a wrapper around <see cref="RuntimeHelpers.
GetHashCode
(object)"/>.
60
return RuntimeHelpers.
GetHashCode
(obj!);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
483
return (_object != null) ? HashCode.Combine(RuntimeHelpers.
GetHashCode
(_object), _index, _length) : 0;
src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
85
return RuntimeHelpers.
GetHashCode
(this);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
393
return (_object != null) ? HashCode.Combine(RuntimeHelpers.
GetHashCode
(_object), _index, _length) : 0;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
613
int hashCode = RuntimeHelpers.
GetHashCode
(key) & int.MaxValue;
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
168
public override int GetHashCode() => RuntimeHelpers.
GetHashCode
(this);
src\System\Delegate.CoreCLR.cs (1)
154
return (_target != null ? RuntimeHelpers.
GetHashCode
(_target) * 33 : 0) + GetType().GetHashCode();
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
137
return (RuntimeHelpers.
GetHashCode
(o) & 0x7FFFFFFF) % m_objs.Length;
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectIDGenerator.cs (1)
36
int hashcode = RuntimeHelpers.
GetHashCode
(obj);
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
601
hc.Add(RuntimeHelpers.
GetHashCode
(value));
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
17
public override int GetHashCode() => RuntimeHelpers.
GetHashCode
(_object);