509 references to RuntimeHelpers
dotnet-svcutil-lib (3)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (3)
69int hashcode = RuntimeHelpers.GetHashCode(obj); 93int hashcode = RuntimeHelpers.GetHashCode(m_objs[pos]); 97if (m_objs[j] == null || RuntimeHelpers.GetHashCode(m_objs[j]) != hashcode)
GenerateDocumentationAndConfigFiles (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
356/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldDesc.cs (1)
24return RuntimeHelpers.GetHashCode(this);
illink (1)
ILLink.RoslynAnalyzer (2)
DataFlow\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
356/// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
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)
80var modelHash = RuntimeHelpers.GetHashCode(Model);
Microsoft.AspNetCore.Connections.Abstractions (1)
src\aspnetcore\src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1457private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
464RuntimeHelpers.EnsureSufficientExecutionStack();
ModelBinding\ModelBinderFactory.cs (1)
303return HashCode.Combine(_metadata, RuntimeHelpers.GetHashCode(_token));
ModelBinding\Validation\ValidationVisitor.cs (1)
266RuntimeHelpers.EnsureSufficientExecutionStack();
src\aspnetcore\src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (1)
154if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Utilities\ReferenceEqualityComparer.cs (1)
22=> RuntimeHelpers.GetHashCode(obj);
Microsoft.Build (10)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\TemporaryArray`1.cs (1)
343if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.Build.Framework (1)
Utilities\TypeInfo.cs (1)
34bool result = RuntimeHelpers.IsReferenceOrContainsReferences<T>();
Microsoft.CodeAnalysis (36)
Collections\CachingFactory.cs (3)
154var hash = RuntimeHelpers.GetHashCode(key); 163int hash = RuntimeHelpers.GetHashCode(key); 179int hash = RuntimeHelpers.GetHashCode(key);
ConstantValueSpecialized.cs (4)
55return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this); 112return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this); 433return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this); 659return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
107=> Hash.Combine(RuntimeHelpers.GetHashCode(_assemblyLoader), FullPath.GetHashCode());
DocumentationComments\DocumentationProvider.NullDocumentationProvider.cs (1)
31return RuntimeHelpers.GetHashCode(this);
Emit\InstrumentationKind.cs (1)
26/// Instruments all methods, local functions and lambdas in the code with calls to <see cref="RuntimeHelpers.EnsureSufficientExecutionStack"/>,
InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
IReferenceOrISignature.cs (1)
34public override int GetHashCode() => RuntimeHelpers.GetHashCode(_item);
PEWriter\SymbolEquivalentEqualityComparer.cs (2)
54return RuntimeHelpers.GetHashCode(obj); 89return RuntimeHelpers.GetHashCode(obj);
PEWriter\Units.cs (1)
65return Hash.Combine(RuntimeHelpers.GetHashCode(Definition), StartLine.GetHashCode());
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
600return RuntimeHelpers.GetHashCode(compilationReference.Compilation); 603return RuntimeHelpers.GetHashCode(reference);
SourceGeneration\CompilationCache.cs (2)
211System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Text), 212System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Options))));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Syntax\InternalSyntax\SyntaxNodeCache.cs (7)
288code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 300code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 304code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 317code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 321code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 325code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child3), code); 354code = Hash.Combine(RuntimeHelpers.GetHashCode(child), code);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\StackGuard.cs (1)
21RuntimeHelpers.EnsureSufficientExecutionStack();
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
Microsoft.CodeAnalysis.CSharp (16)
BoundTree\BoundDecisionDagNode.cs (7)
43return Hash.Combine(n.Evaluation.GetHashCode(), RuntimeHelpers.GetHashCode(n.Next)); 45return Hash.Combine(n.Test.GetHashCode(), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue))); 47return Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenExpression), Hash.Combine(RuntimeHelpers.GetHashCode(n.WhenFalse), RuntimeHelpers.GetHashCode(n.WhenTrue))); 49return RuntimeHelpers.GetHashCode(n.Label);
Symbols\NamedTypeSymbol.cs (1)
1021return RuntimeHelpers.GetHashCode(OriginalDefinition);
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.cs (1)
89return RuntimeHelpers.GetHashCode(this);
Symbols\NoPiaIllegalGenericInstantiationSymbol.cs (1)
75return RuntimeHelpers.GetHashCode(this);
Symbols\NoPiaMissingCanonicalTypeSymbol.cs (1)
113return RuntimeHelpers.GetHashCode(this);
Symbols\PlaceholderTypeArgumentSymbol.cs (1)
69return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
Symbols\Source\SourceLocalSymbol.cs (1)
67return Hash.Combine(RuntimeHelpers.GetHashCode(Local), Reference.GetHashCode());
Symbols\Symbol.cs (1)
837return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
Symbols\TypeSymbol.cs (1)
316return RuntimeHelpers.GetHashCode(this);
Utilities\ValueSetFactory.BoolValueSet.cs (1)
100public override int GetHashCode() => System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\MarkupChunkGenerator.cs (1)
28return RuntimeHelpers.GetHashCode(this);
Language\Legacy\StatementChunkGenerator.cs (1)
28return RuntimeHelpers.GetHashCode(this);
Language\Syntax\StackGuard.cs (1)
28RuntimeHelpers.EnsureSufficientExecutionStack();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
224RuntimeHelpers.EnsureSufficientExecutionStack();
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
235RuntimeHelpers.GetHashCode(TrustedPlatformAssemblies))));
Microsoft.CodeAnalysis.VisualBasic (15)
Scanner\TokenFactories.vb (5)
32Function(key) RuntimeHelpers.GetHashCode(key.spelling) Xor key.kind 66code = (code << 1) Xor RuntimeHelpers.GetHashCode(value) 108Dim code = RuntimeHelpers.GetHashCode(key.spelling) 111code = code Xor (RuntimeHelpers.GetHashCode(trivia) << 1) 116code = code Xor RuntimeHelpers.GetHashCode(trivia)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
124Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Symbols\ErrorTypeSymbol.vb (1)
402Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Symbols\InstanceTypeSymbol.vb (1)
132Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
60Return RuntimeHelpers.GetHashCode(Me)
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
39Return RuntimeHelpers.GetHashCode(Me)
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
85Return RuntimeHelpers.GetHashCode(Me)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
641Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Symbols\Source\SynthesizedLambdaSymbol.vb (1)
70Return RuntimeHelpers.GetHashCode(Me)
Symbols\SubstitutableTypeParameterSymbol.vb (1)
18Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Symbols\Symbol.vb (1)
870Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Microsoft.CodeAnalysis.Workspaces (13)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (4)
738if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 745if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 817if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 824if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (4)
390if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1116if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1142if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1176if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
344if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Utilities\Deque.cs (1)
129return RuntimeHelpers.IsReferenceOrContainsReferences<T>();
Workspace\IsolatedAnalyzerFileReference.cs (1)
108=> RuntimeHelpers.GetHashCode(this);
Microsoft.Diagnostics.DataContractReader.Legacy (16)
_generated\0\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAppDomain.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\1\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataExceptionState.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\10\Microsoft.Diagnostics.DataContractReader.Legacy.MetaDataImportImpl.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 3);
_generated\11\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 19);
_generated\12\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSHandleEnum.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\13\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSMemoryEnum.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\14\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSStackRefEnum.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\15\Microsoft.Diagnostics.DataContractReader.Legacy.SOSDacImpl.SOSMethodEnum.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\2\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataFrame.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\3\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodDefinition.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\4\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataMethodInstance.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\5\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataModule.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\6\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataStackWalk.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\7\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataTask.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\8\Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataValue.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\9\Microsoft.Diagnostics.DataContractReader.Legacy.DacDbiImpl.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
Microsoft.DiaSymReader (6)
_generated\0\Microsoft.DiaSymReader.MetadataAdapterBase.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\1\Microsoft.DiaSymReader.SymReaderMetadataAdapter.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\2\Microsoft.DiaSymReader.SymWriterMetadataAdapter.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 2);
_generated\3\Microsoft.DiaSymReader.ComMemoryStream.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\4\Microsoft.DiaSymReader.ComStreamWrapper.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\5\Microsoft.DiaSymReader.Utilities.UnsafeComStreamWrapper.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
867? RuntimeHelpers.GetUninitializedObject(parameterType)
Microsoft.Extensions.Caching.Hybrid (1)
Internal\ImmutableTypeCache.cs (1)
26return !RuntimeHelpers.IsReferenceOrContainsReferences<T>();
Microsoft.Extensions.Configuration.Binder (1)
src\runtime\src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\StackGuard.cs (1)
29if (RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\runtime\src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestParser.cs (1)
82RuntimeHelpers.EnsureSufficientExecutionStack();
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
582[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.RuntimeHelpers))]
netstandard (1)
netstandard.cs (1)
1570[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.RuntimeHelpers))]
PresentationFramework (7)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
47public static IntPtr AllocateVtableMemory(Type vtableType, int size) => RuntimeHelpers.AllocateTypeAssociatedMemory(vtableType, size);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1379RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventConverter.cs (1)
113RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
45RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\XamlReader.cs (1)
937RuntimeHelpers.RunClassConstructor(typeof(Application).TypeHandle);
System\Windows\Markup\XamlTypeMapper.cs (1)
1998RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\SystemResources.cs (1)
808RuntimeHelpers.RunClassConstructor(knownTypeHelper.TypeHandle);
ReachFramework (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
98private static readonly int _nullHashcode = System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(null);
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\roslyn\src\Dependencies\Contracts\ReferenceEqualityComparer.cs (1)
60return RuntimeHelpers.GetHashCode(obj!);
System.Collections (9)
System\Collections\Generic\PriorityQueue.cs (2)
572if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>()) 668if (RuntimeHelpers.IsReferenceOrContainsReferences<(TElement, TPriority)>())
System\Collections\Generic\SortedList.cs (4)
394if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 398if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 696if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 700if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
System\Collections\Generic\Stack.cs (3)
73if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 237if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 258if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentBag.cs (3)
882if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 899if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 992if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
596if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
428System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(editorBaseType.TypeHandle);
System.Data.OleDb (77)
ColumnBinding.cs (5)
631RuntimeHelpers.PrepareConstrainedRegions(); 666RuntimeHelpers.PrepareConstrainedRegions(); 714RuntimeHelpers.PrepareConstrainedRegions(); 1015RuntimeHelpers.PrepareConstrainedRegions(); 1062RuntimeHelpers.PrepareConstrainedRegions();
DbPropSet.cs (4)
28RuntimeHelpers.PrepareConstrainedRegions(); 185RuntimeHelpers.PrepareConstrainedRegions(); 233RuntimeHelpers.PrepareConstrainedRegions(); 240RuntimeHelpers.PrepareConstrainedRegions();
OleDbCommand.cs (3)
815RuntimeHelpers.PrepareConstrainedRegions(); 972RuntimeHelpers.PrepareConstrainedRegions(); 993RuntimeHelpers.PrepareConstrainedRegions();
OleDbDataReader.cs (3)
1696RuntimeHelpers.PrepareConstrainedRegions(); 1751RuntimeHelpers.PrepareConstrainedRegions(); 1846RuntimeHelpers.PrepareConstrainedRegions();
OleDbTransaction.cs (5)
30RuntimeHelpers.PrepareConstrainedRegions(); 53RuntimeHelpers.PrepareConstrainedRegions(); 57RuntimeHelpers.PrepareConstrainedRegions(); 81RuntimeHelpers.PrepareConstrainedRegions(); 85RuntimeHelpers.PrepareConstrainedRegions();
OleDbWrapper.cs (5)
29RuntimeHelpers.PrepareConstrainedRegions(); 51RuntimeHelpers.PrepareConstrainedRegions(); 130RuntimeHelpers.PrepareConstrainedRegions(); 332RuntimeHelpers.PrepareConstrainedRegions(); 410RuntimeHelpers.PrepareConstrainedRegions();
PropertyInfoSet.cs (2)
36RuntimeHelpers.PrepareConstrainedRegions(); 62RuntimeHelpers.PrepareConstrainedRegions();
RowBinding.cs (13)
129RuntimeHelpers.PrepareConstrainedRegions(); 177RuntimeHelpers.PrepareConstrainedRegions(); 206RuntimeHelpers.PrepareConstrainedRegions(); 213RuntimeHelpers.PrepareConstrainedRegions(); 247RuntimeHelpers.PrepareConstrainedRegions(); 252RuntimeHelpers.PrepareConstrainedRegions(); 289RuntimeHelpers.PrepareConstrainedRegions(); 294RuntimeHelpers.PrepareConstrainedRegions(); 349RuntimeHelpers.PrepareConstrainedRegions(); 485RuntimeHelpers.PrepareConstrainedRegions(); 514RuntimeHelpers.PrepareConstrainedRegions(); 545RuntimeHelpers.PrepareConstrainedRegions(); 572RuntimeHelpers.PrepareConstrainedRegions();
SafeHandles.cs (4)
142RuntimeHelpers.PrepareConstrainedRegions(); 189RuntimeHelpers.PrepareConstrainedRegions(); 212RuntimeHelpers.PrepareConstrainedRegions(); 235RuntimeHelpers.PrepareConstrainedRegions();
System\Data\ProviderBase\DbBuffer.cs (21)
22RuntimeHelpers.PrepareConstrainedRegions(); 66RuntimeHelpers.PrepareConstrainedRegions(); 92RuntimeHelpers.PrepareConstrainedRegions(); 125RuntimeHelpers.PrepareConstrainedRegions(); 158RuntimeHelpers.PrepareConstrainedRegions(); 190RuntimeHelpers.PrepareConstrainedRegions(); 217RuntimeHelpers.PrepareConstrainedRegions(); 242RuntimeHelpers.PrepareConstrainedRegions(); 269RuntimeHelpers.PrepareConstrainedRegions(); 294RuntimeHelpers.PrepareConstrainedRegions(); 320RuntimeHelpers.PrepareConstrainedRegions(); 364RuntimeHelpers.PrepareConstrainedRegions(); 388RuntimeHelpers.PrepareConstrainedRegions(); 414RuntimeHelpers.PrepareConstrainedRegions(); 440RuntimeHelpers.PrepareConstrainedRegions(); 469RuntimeHelpers.PrepareConstrainedRegions(); 495RuntimeHelpers.PrepareConstrainedRegions(); 519RuntimeHelpers.PrepareConstrainedRegions(); 545RuntimeHelpers.PrepareConstrainedRegions(); 569RuntimeHelpers.PrepareConstrainedRegions(); 593RuntimeHelpers.PrepareConstrainedRegions();
System\Data\ProviderBase\DbConnectionPool.cs (10)
241RuntimeHelpers.PrepareConstrainedRegions(); 718RuntimeHelpers.PrepareConstrainedRegions(); 937RuntimeHelpers.PrepareConstrainedRegions(); 940RuntimeHelpers.PrepareConstrainedRegions(); 974RuntimeHelpers.PrepareConstrainedRegions(); 1110RuntimeHelpers.PrepareConstrainedRegions(); 1117RuntimeHelpers.PrepareConstrainedRegions(); 1216RuntimeHelpers.PrepareConstrainedRegions(); 1435RuntimeHelpers.PrepareConstrainedRegions(); 1442RuntimeHelpers.PrepareConstrainedRegions();
System\Data\ProviderBase\WrappedIUnknown.cs (2)
25RuntimeHelpers.PrepareConstrainedRegions(); 49RuntimeHelpers.PrepareConstrainedRegions();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Helpers.cs (1)
58obj is null ? string.Empty : RuntimeHelpers.GetHashCode(obj).ToString(CultureInfo.InvariantCulture);
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
67if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Linq.Expressions (8)
System\Dynamic\BindingRestrictions.cs (1)
296=> InstanceRestrictionHash ^ RuntimeHelpers.GetHashCode(_instance!) ^ _expression.GetHashCode();
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
40return RuntimeHelpers.GetHashCode(Value) ^ Type.GetHashCode();
System\Linq\Expressions\Interpreter\DefaultValueInstruction.cs (1)
30frame.Push(RuntimeHelpers.GetUninitializedObject(_type));
System\Linq\Expressions\Interpreter\LocalAccess.cs (3)
229frame.Push(o == null ? o : RuntimeHelpers.GetObjectValue(o)); 390RuntimeHelpers.GetUninitializedObject(_type); 431RuntimeHelpers.GetUninitializedObject(_type);
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
166frame.Push(RuntimeHelpers.GetUninitializedObject(_defaultValueType));
System\Linq\Expressions\StackGuard.cs (1)
18if (RuntimeHelpers.TryEnsureSufficientExecutionStack())
System.Management (1)
System\Management\Property.cs (1)
28return RuntimeHelpers.GetObjectValue(theValue);
System.Private.CoreLib (200)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (3)
806RuntimeHelpers.WriteBarrier(ref element, obj); 829RuntimeHelpers.WriteBarrier(ref element, obj); 846RuntimeHelpers.WriteBarrier(ref element, castedObj);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (4)
92ref byte data = ref RuntimeHelpers.GetRawData(this); 115ref byte data = ref RuntimeHelpers.GetRawData(this); 126ref byte data = ref RuntimeHelpers.GetRawData(this); 137ref byte data = ref RuntimeHelpers.GetRawData(this);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
172if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 236if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (16)
373MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 374if (MethodTable.AreSameType(pMT, RuntimeHelpers.GetMethodTable(destinationArray)) && 408MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 409if (MethodTable.AreSameType(pMT, RuntimeHelpers.GetMethodTable(destinationArray)) && 464MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 536MethodTable* pDestArrayMT = RuntimeHelpers.GetMethodTable(destinationArray); 561else if (obj is null || RuntimeHelpers.GetMethodTable(obj) != pDestMT) 581MethodTable* pSrcArrayMT = RuntimeHelpers.GetMethodTable(sourceArray); 645nuint srcElSize = RuntimeHelpers.GetMethodTable(sourceArray)->ComponentSize; 646nuint destElSize = RuntimeHelpers.GetMethodTable(destinationArray)->ComponentSize; 669MethodTable* pMT = RuntimeHelpers.GetMethodTable(array); 697MethodTable* pMT = RuntimeHelpers.GetMethodTable(array); 728if (!RuntimeHelpers.GetMethodTable(this)->IsSzArray) 744if (!RuntimeHelpers.GetMethodTable(this)->IsSzArray) 1914if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2158if (RuntimeHelpers.IsBitwiseEquatable<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffer.cs (1)
134if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
145if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (10)
909if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 914if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1339if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1344if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1387if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1392if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1467if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1472if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1517if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1522if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 577if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (4)
323if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 988if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1012if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1044if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
72if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 205if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 227if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ReferenceEqualityComparer.cs (2)
52/// This API is a wrapper around <see cref="RuntimeHelpers.GetHashCode(object)"/>. 60return RuntimeHelpers.GetHashCode(obj!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1090ReadOnlySpan<uint> days = RuntimeHelpers.IsKnownConstant(month) && month == 1 || IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.Internal.cs (12)
17[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_Enable")] 25[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_Disable")] 31[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_CreateProvider", StringMarshalling = StringMarshalling.Utf16)] 36[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_DefineEvent")] 39[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetProvider", StringMarshalling = StringMarshalling.Utf16)] 42[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_DeleteProvider")] 45[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_EventActivityIdControl")] 48[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_WriteEventData")] 54[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetSessionInfo")] 58[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetNextEvent")] 62[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_SignalSession")] 66[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_WaitForSessionSignal")]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Exceptions.NativeSinks.Internal.cs (1)
12[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogExceptionThrown", StringMarshalling = StringMarshalling.Utf16)]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.Internal.cs (16)
12[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionLockCreated")] 16[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionStart")] 25[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionStop")] 32[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadStart")] 36[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadStop")] 40[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadWait")] 44[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolMinMaxThreads")] 48[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentSample")] 52[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentAdjustment")] 56[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentStats")] 71[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIOEnqueue")] 79[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIODequeue")] 86[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkingThreadCount")] 92[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIOPack")] 99[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogWaitHandleWaitStart")] 106[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogWaitHandleWaitStop")]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (1)
342: RuntimeHelpers.GetUninitializedObject(valueInfo.DataType));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
2261int size = RuntimeHelpers.SizeOf(type); 2265return RuntimeHelpers.Box(ref MemoryMarshal.GetReference(rawData), type)!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (3)
290else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 405else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 483return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (48)
330if (RuntimeHelpers.IsBitwiseEquatable<T>()) 813if (RuntimeHelpers.IsBitwiseEquatable<T>()) 862if (RuntimeHelpers.IsBitwiseEquatable<T>()) 940if (RuntimeHelpers.IsBitwiseEquatable<T>()) 978if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1047if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1088if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1150if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1208if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1238if (RuntimeHelpers.IsBitwiseEquatable<T>() && sizeof(T) == sizeof(char)) 1391if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1440if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1518if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1556if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1625if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1666if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1729if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1788if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1818if (RuntimeHelpers.IsBitwiseEquatable<T>() && sizeof(T) == sizeof(char)) 2212if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2253if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2321if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2350if (RuntimeHelpers.IsBitwiseEquatable<T>() && (comparer is null || comparer == EqualityComparer<T>.Default)) 2407if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2453if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2527if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2559if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2670if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2705if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2770if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2808if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2875if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3090if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3125if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3191if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3229if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3297if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3452if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3495if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3592if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3635if (RuntimeHelpers.IsBitwiseEquatable<T>()) 4475if (RuntimeHelpers.IsBitwiseEquatable<T>()) 4541if (RuntimeHelpers.IsBitwiseEquatable<T>()) 4654if (RuntimeHelpers.IsBitwiseEquatable<T>()) 4740if (RuntimeHelpers.IsBitwiseEquatable<T>()) 4937if (RuntimeHelpers.IsBitwiseEquatable<T>()) 5428if (RuntimeHelpers.IsBitwiseEquatable<T>()) 5477if (RuntimeHelpers.IsBitwiseEquatable<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (6)
148if (RuntimeHelpers.IsKnownConstant(row)) 187if (RuntimeHelpers.IsKnownConstant(row)) 249if (RuntimeHelpers.IsKnownConstant(row) && RuntimeHelpers.IsKnownConstant(column)) 288if (RuntimeHelpers.IsKnownConstant(row) && RuntimeHelpers.IsKnownConstant(column))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (6)
222if (RuntimeHelpers.IsKnownConstant(row)) 268if (RuntimeHelpers.IsKnownConstant(row)) 336if (RuntimeHelpers.IsKnownConstant(row) && RuntimeHelpers.IsKnownConstant(column)) 382if (RuntimeHelpers.IsKnownConstant(row) && RuntimeHelpers.IsKnownConstant(column))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
85return RuntimeHelpers.GetHashCode(this);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
212else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 320else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 393return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
106if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (2)
614int hashCode = RuntimeHelpers.GetHashCode(key) & int.MaxValue; 648int hashCode = RuntimeHelpers.TryGetHashCode(key);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
157else if (count < list._size && RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1504/// allocated with the <see cref="RuntimeHelpers.AllocateTypeAssociatedMemory(Type, int)"/> API.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
134if (RuntimeHelpers.ObjectHasComponentSize(target))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (14)
34if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 57if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 120if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 122if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 175if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 177if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 283if (RuntimeHelpers.ObjectHasComponentSize(obj)) 411if (RuntimeHelpers.ObjectHasComponentSize(obj)) // Same check as in TryGetArray to confirm that obj is a T[] or a U[] which is blittable to a T[]. 473if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 492if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 512if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 531if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 555if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 577if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
407if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\X86\X86Base.cs (1)
128[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "X86Base_CpuId")]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
111if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 297if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.ByteMemOps.cs (2)
263[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "memmove")] 486[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "memset")]
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.cs (1)
303if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (1)
25Debug.Assert(RuntimeHelpers.IsBitwiseEquatable<T>());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (3)
23if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1867if (RuntimeHelpers.IsKnownConstant(value0) && RuntimeHelpers.IsKnownConstant(value1))
src\runtime\src\libraries\System.Private.CoreLib\src\System\SR.cs (4)
84RuntimeHelpers.RunClassConstructor(typeof(ResourceManager).TypeHandle); 85RuntimeHelpers.RunClassConstructor(typeof(ResourceReader).TypeHandle); 86RuntimeHelpers.RunClassConstructor(typeof(RuntimeResourceSet).TypeHandle); 87RuntimeHelpers.RunClassConstructor(typeof(BinaryReader).TypeHandle);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
493if (RuntimeHelpers.IsKnownConstant(value) && value != '\0') 1115if (RuntimeHelpers.IsKnownConstant(value) && value != '\0')
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (1)
18if (RuntimeHelpers.IsKnownConstant(value) && value.Length == 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (1)
871[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Interlocked_MemoryBarrierProcessWide")]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
3617RuntimeHelpers.TryEnsureSufficientExecutionStack(); 5576else if (!RuntimeHelpers.IsReferenceOrContainsReferences<TResult>()) 7593if (RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
179!RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
497if (RuntimeHelpers.IsKnownConstant(type) && type is RuntimeType)
System\Delegate.cs (2)
765int hash = RuntimeHelpers.GetHashCode(_helperObject) + 771hash += 17 * RuntimeHelpers.GetHashCode(_firstParameter);
System\GC.NativeAot.cs (1)
814if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System\Object.NativeAot.cs (1)
37nuint byteCount = RuntimeHelpers.GetRawObjectDataSize(this);
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
86return RuntimeHelpers.GetUninitializedObject(thisType);
System\RuntimeType.NativeAot.cs (1)
215return RuntimeHelpers.GetHashCode(this);
System\Threading\ObjectHeader.cs (1)
126int newHash = RuntimeHelpers.GetNewHashCode() & MASK_HASHCODE_INDEX;
System\TypedReference.cs (1)
59return RuntimeHelpers.Box(ref value.Value, handle);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
125return (RuntimeHelpers.GetHashCode(o) & 0x7FFFFFFF) % m_objs.Length;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
999return RuntimeHelpers.GetUninitializedObject(type);
System.Private.TypeLoader (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldDesc.cs (1)
24return RuntimeHelpers.GetHashCode(this);
System.Private.Windows.Core (3)
_generated\166\Windows.Win32.IVTable.g.cs (1)
44 TVTable* vtbl = (TVTable*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(TVTable), sizeof(TVTable));
Windows\Win32\System\Com\ComInterfaceTable.cs (1)
247(ComInterfaceEntry*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(T), sizeof(ComInterfaceEntry) * (count + 1)),
Windows\Win32\System\Com\IUnknown.CCW.cs (1)
27Vtbl* vtable = (Vtbl*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(CCW), sizeof(Vtbl));
System.Private.Xml (1)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
439public static readonly MethodInfo InitializeArray = typeof(System.Runtime.CompilerServices.RuntimeHelpers).GetMethod("InitializeArray")!;
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
46RuntimeHelpers.GetUninitializedObject(type);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
634[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.RuntimeHelpers))]
System.Runtime.Serialization.Formatters (3)
System\Runtime\Serialization\FormatterServices.cs (2)
197Type type) => RuntimeHelpers.GetUninitializedObject(type); 201Type type) => RuntimeHelpers.GetUninitializedObject(type);
System\Runtime\Serialization\ObjectIDGenerator.cs (1)
36int hashcode = RuntimeHelpers.GetHashCode(obj);
System.Text.Json (4)
System\Text\Json\Document\JsonElement.cs (1)
1260if (!RuntimeHelpers.TryEnsureSufficientExecutionStack())
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (1)
104RuntimeHelpers.GetUninitializedObject(fieldType) :
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
635hc.Add(RuntimeHelpers.GetHashCode(value));
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
17public override int GetHashCode() => RuntimeHelpers.GetHashCode(_object);
System.Text.RegularExpressions (3)
System\Text\StructListBuilder.cs (2)
51ArrayPool<T>.Shared.Return(_array, clearArray: RuntimeHelpers.IsReferenceOrContainsReferences<T>()); 68ArrayPool<T>.Shared.Return(array, clearArray: RuntimeHelpers.IsReferenceOrContainsReferences<T>());
System\Threading\StackHelper.cs (1)
16return RuntimeHelpers.TryEnsureSufficientExecutionStack();
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (1)
20RuntimeHelpers.EnsureSufficientExecutionStack();
System.Transactions.Local (4)
_generated\1\System.Transactions.DtcProxyShim.EnlistmentNotifyShim.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\2\System.Transactions.DtcProxyShim.Phase0NotifyShim.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\3\System.Transactions.DtcProxyShim.ResourceManagerNotifyShim.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);
_generated\4\System.Transactions.DtcProxyShim.VoterNotifyShim.cs (1)
11global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry* vtables = (global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry*)global::System.Runtime.CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComClassInformation), sizeof(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry) * 1);