756 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)
illink (1)
ILLink.RoslynAnalyzer (2)
DataFlow\StackGuard.cs (1)
28 RuntimeHelpers.EnsureSufficientExecutionStack ();
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
336 /// <see cref="System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(System.RuntimeTypeHandle)"/>
InteractiveHost.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
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)
74var modelHash = RuntimeHelpers.GetHashCode(Model);
Microsoft.AspNetCore.Connections.Abstractions (1)
src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.DataProtection (4)
Cng\DpapiSecretSerializerHelper.cs (4)
83RuntimeHelpers.PrepareConstrainedRegions(); 175RuntimeHelpers.PrepareConstrainedRegions(); 226RuntimeHelpers.PrepareConstrainedRegions(); 301RuntimeHelpers.PrepareConstrainedRegions();
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
98if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1423private 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)
271RuntimeHelpers.EnsureSufficientExecutionStack();
src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ParameterDefaultValue\ParameterDefaultValue.cs (1)
87private static object? CreateValueType(Type t) => RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis (35)
Collections\CachingFactory.cs (3)
154var hash = RuntimeHelpers.GetHashCode(key); 163int hash = RuntimeHelpers.GetHashCode(key); 179int hash = RuntimeHelpers.GetHashCode(key);
Collections\TemporaryArray`1.cs (1)
341if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
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\ReferenceEqualityComparer.cs (1)
33return RuntimeHelpers.GetHashCode(a);
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)
599return RuntimeHelpers.GetHashCode(compilationReference.Compilation); 602return RuntimeHelpers.GetHashCode(reference);
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
736if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 743if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 815if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 822if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
328if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\SegmentedList`1.cs (4)
388if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1114if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1140if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1174if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Syntax\GreenNode.cs (1)
988code = Hash.Combine(RuntimeHelpers.GetHashCode(child), code);
Syntax\InternalSyntax\SyntaxNodeCache.cs (6)
278code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 290code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 294code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 307code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child1), code); 311code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child2), code); 315code = Hash.Combine(System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(child3), code);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
33return RuntimeHelpers.GetHashCode(a);
src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
Microsoft.CodeAnalysis.Collections.Package (9)
SegmentedDictionary`2.cs (4)
736if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 743if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 815if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 822if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
SegmentedHashSet`1.cs (1)
328if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
SegmentedList`1.cs (4)
388if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1114if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1140if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1174if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.CSharp (15)
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)
778return 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\Symbol.cs (1)
830return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
Symbols\TypeSymbol.cs (1)
314return RuntimeHelpers.GetHashCode(this);
Utilities\ValueSetFactory.BoolValueSet.cs (1)
100public override int GetHashCode() => System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(this);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Features.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Remote.ServiceHub.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
226RuntimeHelpers.EnsureSufficientExecutionStack();
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
236RuntimeHelpers.GetHashCode(TrustedPlatformAssemblies))));
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestDocumentationCommentProvider.cs (1)
27public override int GetHashCode() => RuntimeHelpers.GetHashCode(this);
Mocks\TestSourceReferenceResolver.cs (1)
62public override int GetHashCode() => RuntimeHelpers.GetHashCode(this);
Microsoft.CodeAnalysis.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
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)
395Return 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)
639Return 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)
857Return System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(Me)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\GetSemanticInfoTests.vb (1)
4640Assert.NotNull(RuntimeHelpers.GetObjectValue(sharedSymb.ToString))
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
33return RuntimeHelpers.GetHashCode(a);
src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
341if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Compilers\Core\Portable\InternalUtilities\ReferenceEqualityComparer.cs (1)
33return RuntimeHelpers.GetHashCode(a);
src\Compilers\Core\Portable\InternalUtilities\StackGuard.cs (1)
29RuntimeHelpers.EnsureSufficientExecutionStack();
src\Dependencies\Collections\SegmentedDictionary`2.cs (4)
736if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 743if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 815if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 822if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\Dependencies\Collections\SegmentedHashSet`1.cs (1)
328if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\Dependencies\Collections\SegmentedList`1.cs (4)
388if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1114if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1140if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 1174if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
MEF\UseExportProviderAttribute.cs (1)
62RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Workspaces\TestWorkspace_XmlConsumption.cs (1)
113=> RuntimeHelpers.GetHashCode(this);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
Microsoft.CodeAnalysis.XunitHook (1)
XunitDisposeHook.cs (1)
37RuntimeHelpers.PrepareMethod(method.MethodHandle);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\ImmutableTypeCache.cs (1)
26return !RuntimeHelpers.IsReferenceOrContainsReferences<T>();
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\StackGuard.cs (1)
29if (RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(t);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\libraries\Common\src\Extensions\ParameterDefaultValue\ParameterDefaultValue.cs (1)
46RuntimeHelpers.GetUninitializedObject(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\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)
1376RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventConverter.cs (1)
114RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
46RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\Markup\XamlReader.cs (1)
933RuntimeHelpers.RunClassConstructor(typeof(Application).TypeHandle);
System\Windows\Markup\XamlTypeMapper.cs (1)
2003RuntimeHelpers.RunClassConstructor(currentType.TypeHandle);
System\Windows\SystemResources.cs (1)
816RuntimeHelpers.RunClassConstructor(knownTypeHelper.TypeHandle);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\UriComparer.cs (1)
99private static readonly int _nullHashcode = System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(null);
SemanticSearch.BuildTask.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);
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)
888if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 905if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 998if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
594if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
429System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(editorBaseType.TypeHandle);
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.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (1)
287if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System\Numerics\Tensors\netcore\TensorSpan.cs (1)
288if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
System.Private.CoreLib (549)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
1143MethodTable* mt = RuntimeHelpers.GetMethodTable(exception);
src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (2)
14[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_ThrowAmbiguousResolutionException")] 28[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_ThrowEntryPointNotFoundException")]
src\Interop\Unix\Interop.Libraries.cs (1)
10internal const string Kernel32 = RuntimeHelpers.QCall;
src\libraries\System.Private.CoreLib\src\System\Array.cs (6)
365MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 366if (MethodTable.AreSameType(pMT, RuntimeHelpers.GetMethodTable(destinationArray)) && 394MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 395if (MethodTable.AreSameType(pMT, RuntimeHelpers.GetMethodTable(destinationArray)) && 1510if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1754if (RuntimeHelpers.IsBitwiseEquatable<T>())
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (1)
153if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
145if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (6)
908if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 913if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1334if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1339if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>()) 1409if (RuntimeHelpers.IsReferenceOrContainsReferences<TKey>()) 1414if (RuntimeHelpers.IsReferenceOrContainsReferences<TValue>())
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (2)
330if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 577if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
72if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 205if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 227if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.Internal.cs (12)
15[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_Enable")] 23[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_Disable")] 29[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_CreateProvider", StringMarshalling = StringMarshalling.Utf16)] 34[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_DefineEvent")] 37[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetProvider", StringMarshalling = StringMarshalling.Utf16)] 40[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_DeleteProvider")] 43[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_EventActivityIdControl")] 46[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_WriteEventData")] 52[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetSessionInfo")] 56[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_GetNextEvent")] 60[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_SignalSession")] 64[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EventPipeInternal_WaitForSessionSignal")]
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.Threading.NativeSinks.Internal.cs (16)
14[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionLockCreated")] 18[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionStart")] 27[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogContentionStop")] 34[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadStart")] 38[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadStop")] 42[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadWait")] 46[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolMinMaxThreads")] 50[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentSample")] 54[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentAdjustment")] 58[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentStats")] 73[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIOEnqueue")] 81[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIODequeue")] 88[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolWorkingThreadCount")] 94[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogThreadPoolIOPack")] 101[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogWaitHandleWaitStart")] 108[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeRuntimeEventSource_LogWaitHandleWaitStop")]
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (1)
342: RuntimeHelpers.GetUninitializedObject(valueInfo.DataType));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (3)
23[LibraryImport(RuntimeHelpers.QCall, StringMarshalling = StringMarshalling.Utf16)] 43[LibraryImport(RuntimeHelpers.QCall)] 47[LibraryImport(RuntimeHelpers.QCall, StringMarshalling = StringMarshalling.Utf16)]
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
2260int size = RuntimeHelpers.SizeOf(type); 2264return RuntimeHelpers.Box(ref MemoryMarshal.GetReference(rawData), type)!;
src\libraries\System.Private.CoreLib\src\System\Memory.cs (3)
293else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 408else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 486return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0;
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (31)
329if (RuntimeHelpers.IsBitwiseEquatable<T>()) 705if (RuntimeHelpers.IsBitwiseEquatable<T>()) 752if (RuntimeHelpers.IsBitwiseEquatable<T>()) 788if (RuntimeHelpers.IsBitwiseEquatable<T>()) 816if (RuntimeHelpers.IsBitwiseEquatable<T>()) 874if (RuntimeHelpers.IsBitwiseEquatable<T>()) 904if (RuntimeHelpers.IsBitwiseEquatable<T>() && sizeof(T) == sizeof(char)) 1019if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1066if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1102if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1130if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1189if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1219if (RuntimeHelpers.IsBitwiseEquatable<T>() && sizeof(T) == sizeof(char)) 1551if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1589if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1617if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1660if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1745if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1778if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1811if (RuntimeHelpers.IsBitwiseEquatable<T>()) 1989if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2022if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2055if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2173if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2216if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2293if (RuntimeHelpers.IsBitwiseEquatable<T>()) 2323if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3106if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3194if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3268if (RuntimeHelpers.IsBitwiseEquatable<T>()) 3762if (RuntimeHelpers.IsBitwiseEquatable<T>())
src\libraries\System.Private.CoreLib\src\System\Object.cs (1)
85return RuntimeHelpers.GetHashCode(this);
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
215else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 323else if (RuntimeHelpers.ObjectHasComponentSize(tmpObject)) 396return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0;
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
103if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (3)
140return RuntimeHelpers.Box( 159return RuntimeHelpers.Box(_methodTable, ref Unsafe.AsRef<byte>(_addressOrOffset.ToPointer())); 163return RuntimeHelpers.Box(
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (2)
338s_Object_GetRawData ??= typeof(RuntimeHelpers).GetMethod(nameof(RuntimeHelpers.GetRawData), BindingFlags.NonPublic | BindingFlags.Static)!;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (2)
507int hashCode = RuntimeHelpers.GetHashCode(key) & int.MaxValue; 541int hashCode = RuntimeHelpers.TryGetHashCode(key);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
130else if (count < list._size && RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
111/// allocated with the <see cref="CompilerServices.RuntimeHelpers.AllocateTypeAssociatedMemory(Type, int)"/> API.
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
131if (RuntimeHelpers.ObjectHasComponentSize(target))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (14)
33if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 56if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 118if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 120if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 173if (RuntimeHelpers.IsReferenceOrContainsReferences<TFrom>()) 175if (RuntimeHelpers.IsReferenceOrContainsReferences<TTo>()) 281if (RuntimeHelpers.ObjectHasComponentSize(obj)) 409if (RuntimeHelpers.ObjectHasComponentSize(obj)) // Same check as in TryGetArray to confirm that obj is a T[] or a U[] which is blittable to a T[]. 471if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 490if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 510if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 529if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 552if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 574if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
405if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (4)
168public override int GetHashCode() => RuntimeHelpers.GetHashCode(this); 914return RuntimeHelpers.Box(ref RuntimeHelpers.GetRawData(value), type.TypeHandle)!; 924return RuntimeHelpers.GetUninitializedObject(type);
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
108if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 282if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.cs (1)
303if (!RuntimeHelpers.IsReferenceOrContainsReferences<T>())
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (1)
25Debug.Assert(RuntimeHelpers.IsBitwiseEquatable<T>());
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (3)
23if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) { goto CannotVectorize; } 1674if (RuntimeHelpers.IsKnownConstant(value0) && RuntimeHelpers.IsKnownConstant(value1))
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\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (2)
600if (RuntimeHelpers.IsKnownConstant(value) && value != '\0') 1177if (RuntimeHelpers.IsKnownConstant(value) && value != '\0')
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (1)
16if (RuntimeHelpers.IsKnownConstant(value) && value.Length == 1)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
3469RuntimeHelpers.TryEnsureSufficientExecutionStack(); 5422else if (!RuntimeHelpers.IsReferenceOrContainsReferences<TResult>()) 7422if (RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
179!RuntimeHelpers.TryEnsureSufficientExecutionStack())
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
497if (RuntimeHelpers.IsKnownConstant(type) && type is RuntimeType)
src\System\Array.CoreCLR.cs (36)
18[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Array_CreateInstance")] 70MethodTable* pMT = RuntimeHelpers.GetMethodTable(sourceArray); 158TypeHandle srcTH = RuntimeHelpers.GetMethodTable(sourceArray)->GetArrayElementTypeHandle(); 159TypeHandle destTH = RuntimeHelpers.GetMethodTable(destinationArray)->GetArrayElementTypeHandle(); 197else if (RuntimeHelpers.CanPrimitiveWiden(srcElType, destElType)) 234MethodTable* pDestArrayMT = RuntimeHelpers.GetMethodTable(destinationArray); 238Debug.Assert(!RuntimeHelpers.GetMethodTable(sourceArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType); 258else if (obj is null || RuntimeHelpers.GetMethodTable(obj) != pDestMT) 276MethodTable* pSrcArrayMT = RuntimeHelpers.GetMethodTable(sourceArray); 280Debug.Assert(!RuntimeHelpers.GetMethodTable(destinationArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType); 290object? obj = RuntimeHelpers.Box(pSrcMT, ref Unsafe.AddByteOffset(ref data, (nuint)i * srcSize)); 298void* destTH = RuntimeHelpers.GetMethodTable(destinationArray)->ElementType; 322nuint srcElSize = RuntimeHelpers.GetMethodTable(sourceArray)->ComponentSize; 323nuint destElSize = RuntimeHelpers.GetMethodTable(destinationArray)->ComponentSize; 356MethodTable* pMT = RuntimeHelpers.GetMethodTable(array); 384MethodTable* pMT = RuntimeHelpers.GetMethodTable(array); 415if (RuntimeHelpers.GetMethodTable(this)->IsMultiDimensionalArray) 417ref int bounds = ref RuntimeHelpers.GetMultiDimensionalArrayBounds(this); 431if (RuntimeHelpers.GetMethodTable(this)->IsMultiDimensionalArray) 433ref int bounds = ref RuntimeHelpers.GetMultiDimensionalArrayBounds(this); 457MethodTable* pMethodTable = RuntimeHelpers.GetMethodTable(this); 480result = RuntimeHelpers.Box(pElementMethodTable, ref offsetDataRef); 499MethodTable* pMethodTable = RuntimeHelpers.GetMethodTable(this); 573MethodTable* pValueMethodTable = RuntimeHelpers.GetMethodTable(value); 583if (!RuntimeHelpers.CanPrimitiveWiden(srcType, targetType)) 612int rank = RuntimeHelpers.GetMultiDimensionalArrayRank(this); 620int rank = RuntimeHelpers.GetMultiDimensionalArrayRank(this); 627return Unsafe.Add(ref RuntimeHelpers.GetMultiDimensionalArrayBounds(this), dimension); 633int rank = RuntimeHelpers.GetMultiDimensionalArrayRank(this); 640ref int bounds = ref RuntimeHelpers.GetMultiDimensionalArrayBounds(this); 647int rank = RuntimeHelpers.GetMultiDimensionalArrayRank(this); 654return Unsafe.Add(ref RuntimeHelpers.GetMultiDimensionalArrayBounds(this), rank + dimension); 662MethodTable* thisMT = RuntimeHelpers.GetMethodTable(this); 663return (IntPtr)thisMT->ElementType == (IntPtr)RuntimeHelpers.GetMethodTable(value); 671MethodTable* pArrayMT = RuntimeHelpers.GetMethodTable(this); 703[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Array_GetElementConstructorEntrypoint")]
src\System\Buffer.CoreCLR.cs (2)
12[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Buffer_Clear")] 15[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Buffer_MemMove")]
src\System\CLRConfig.cs (1)
18[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ClrConfig_GetConfigBoolValue", StringMarshalling = StringMarshalling.Utf16)]
src\System\Collections\Generic\Comparer.CoreCLR.cs (1)
19return RuntimeHelpers.EnumCompareTo(x, y);
src\System\Collections\Generic\EqualityComparer.CoreCLR.cs (3)
167return RuntimeHelpers.EnumEquals(x, y); 175if (RuntimeHelpers.EnumEquals(array[i], value)) return i; 185if (RuntimeHelpers.EnumEquals(array[i], value)) return i;
src\System\ComAwareWeakReference.CoreCLR.cs (2)
12[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWeakRefToObject")] 42[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ObjectToComWeakRef")]
src\System\Delegate.CoreCLR.cs (11)
154return (_target != null ? RuntimeHelpers.GetHashCode(_target) * 33 : 0) + GetType().GetHashCode(); 418[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_BindToMethodName", StringMarshalling = StringMarshalling.Utf8)] 431[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_BindToMethodInfo")] 482[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_Construct")] 488[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_GetMulticastInvokeSlow")] 493MethodTable* pMT = RuntimeHelpers.GetMethodTable(this); 510MethodTable* pMT = RuntimeHelpers.GetMethodTable(this); 524[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_FindMethodHandle")] 532[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_InternalEqualMethodHandles")] 541[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_AdjustTarget")] 550[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Delegate_InitializeVirtualCallStub")]
src\System\Diagnostics\Debugger.cs (6)
14[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_Break")] 57[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_Launch")] 64[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_IsManagedDebuggerAttached")] 83[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_Log", StringMarshalling = StringMarshalling.Utf16)] 89[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_IsLoggingHelper")] 96[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DebugDebugger_CustomNotification")]
src\System\Diagnostics\StackFrame.CoreCLR.cs (1)
59[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StackFrame_GetMethodDescFromNativeIP")]
src\System\Diagnostics\StackTrace.CoreCLR.cs (1)
12[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StackTrace_GetStackFramesInternal")]
src\System\Enum.CoreCLR.cs (2)
14[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Enum_GetValuesAndNames")] 29CorElementType elementType = RuntimeHelpers.GetMethodTable(this)->GetPrimitiveCorElementType();
src\System\Environment.CoreCLR.cs (3)
22[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Environment_Exit")] 86[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Environment_FailFast", StringMarshalling = StringMarshalling.Utf16)] 106[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Environment_GetProcessorCount")]
src\System\Exception.CoreCLR.cs (3)
58[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_GetMethodFromStackTrace")] 203[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_GetMessageFromNativeResources")] 226[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ExceptionNative_GetFrozenStackTrace")]
src\System\GC.CoreCLR.cs (21)
93[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_StartNoGCRegion")] 96[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_EndNoGCRegion")] 107[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_AllocateNewArray")] 110[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_GetTotalMemory")] 113[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_Collect")] 131[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_AddMemoryPressure")] 134[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_RemoveMemoryPressure")] 308[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_GetNextFinalizableObject")] 338[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_WaitForPendingFinalizers")] 363[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_ReRegisterForFinalize")] 370MethodTable* pMT = RuntimeHelpers.GetMethodTable(obj); 407[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_RegisterFrozenSegment")] 410[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_UnregisterFrozenSegment")] 426[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_GetTotalAllocatedBytesPrecise")] 435[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_WaitForFullGCApproach")] 438[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_WaitForFullGCComplete")] 754[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_EnableNoGCRegionCallback")] 762[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_GetGenerationBudget")] 796if (RuntimeHelpers.IsReferenceOrContainsReferences<T>()) 927[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_EnumerateConfigurationValues")] 994[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCInterface_RefreshMemoryLimit")]
src\System\IO\FileLoadException.CoreCLR.cs (2)
34[LibraryImport(RuntimeHelpers.QCall)] 37[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "FileLoadException_GetMessageForHR")]
src\System\IO\Stream.CoreCLR.cs (3)
11[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Stream_HasOverriddenSlow")] 17MethodTable* pMT = RuntimeHelpers.GetMethodTable(this); 31MethodTable* pMT = RuntimeHelpers.GetMethodTable(this);
src\System\Math.CoreCLR.cs (1)
98if (RuntimeHelpers.IsKnownConstant(x))
src\System\MathF.CoreCLR.cs (1)
95if (RuntimeHelpers.IsKnownConstant(x))
src\System\Object.CoreCLR.cs (4)
16MethodTable* pMT = RuntimeHelpers.GetMethodTable(this); 30RuntimeHelpers.AllocateUninitializedClone(ObjectHandleOnStack.Create(ref clone)); 35nuint byteCount = RuntimeHelpers.GetRawObjectDataSize(clone); 39if (RuntimeHelpers.GetMethodTable(clone)->ContainsGCPointers)
src\System\Reflection\Assembly.CoreCLR.cs (3)
56[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetExecutingAssembly")] 84[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetEntryAssembly")] 94[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetAssemblyCount")]
src\System\Reflection\AssemblyName.CoreCLR.cs (1)
170[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyName_InitializeAssemblySpec")]
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (1)
12using static System.Runtime.CompilerServices.RuntimeHelpers;
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
115[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AppDomain_CreateDynamicAssembly")]
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (9)
101[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetTypeRef", StringMarshalling = StringMarshalling.Utf16)] 104[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetMemberRef")] 115[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetMemberRefFromSignature", StringMarshalling = StringMarshalling.Utf16)] 124[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetMemberRefOfMethodInfo")] 147[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetMemberRefOfFieldInfo")] 158[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetTokenFromTypeSpec")] 167[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetArrayMethodToken", StringMarshalling = StringMarshalling.Utf16)] 170[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_GetStringConstant", StringMarshalling = StringMarshalling.Utf16)] 173[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleBuilder_SetFieldRVAContent")]
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (21)
60[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetParentType")] 63[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_AddInterfaceImpl")] 68[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineMethod", StringMarshalling = StringMarshalling.Utf16)] 72[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineMethodSpec")] 75[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineField", StringMarshalling = StringMarshalling.Utf16)] 79[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetMethodIL")] 87[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineCustomAttribute")] 98[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineProperty", StringMarshalling = StringMarshalling.Utf16)] 102[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineEvent", StringMarshalling = StringMarshalling.Utf16)] 105[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineMethodSemantics")] 109[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineMethodImpl")] 112[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetMethodImpl")] 115[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetParamInfo", StringMarshalling = StringMarshalling.Utf16)] 119[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_GetTokenFromSig")] 122[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetFieldLayoutOffset")] 125[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetClassLayout")] 128[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetConstantValue")] 131[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_SetPInvokeData", StringMarshalling = StringMarshalling.Utf16)] 542[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineType", StringMarshalling = StringMarshalling.Utf16)] 546[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_DefineGenericParam", StringMarshalling = StringMarshalling.Utf16)] 550[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeBuilder_TermCreateClass")]
src\System\Reflection\LoaderAllocator.cs (1)
28[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "LoaderAllocator_Destroy")]
src\System\Reflection\MdImport.cs (1)
317[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MetadataImport_Enum")]
src\System\Reflection\Metadata\AssemblyExtensions.cs (1)
11[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_InternalTryGetRawMetadata")]
src\System\Reflection\Metadata\MetadataUpdater.cs (2)
13[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_ApplyUpdate")] 16[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_IsApplyUpdateSupported")]
src\System\Reflection\MethodBase.CoreCLR.cs (1)
39[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MethodBase_GetCurrentMethod")]
src\System\Reflection\RuntimeAssembly.cs (24)
79[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetCodeBase")] 150[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetFullName")] 170[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetEntryPoint")] 189[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetTypeCore", StringMarshalling = StringMarshalling.Utf8)] 196[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetTypeCoreIgnoreCase", StringMarshalling = StringMarshalling.Utf16)] 249[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetExportedTypes")] 267[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetIsCollectible")] 280[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetResource", StringMarshalling = StringMarshalling.Utf16)] 408[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_InternalLoad")] 420[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetModule", StringMarshalling = StringMarshalling.Utf16)] 474[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetManifestResourceNames")] 487[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetReferencedAssemblies")] 499[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetManifestResourceInfo", StringMarshalling = StringMarshalling.Utf16)] 521[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetLocation")] 537[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetImageRuntimeVersion")] 556[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetVersion")] 570[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetLocale")] 599[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetSimpleName")] 610[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetHashAlgorithm")] 619[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetFlags")] 628[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetPublicKey")] 684[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetModules")] 726[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyHandle_GetManifestModuleSlow")] 814[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetForwardedType")]
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
211RuntimeHelpers.RunClassConstructor(declaringType.TypeHandle); 215RuntimeHelpers.RunModuleConstructor(Module.ModuleHandle);
src\System\Reflection\RuntimeCustomAttributeData.cs (3)
1843[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CustomAttribute_ParseAttributeUsageAttribute")] 1868[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CustomAttribute_CreateCustomAttributeInstance")] 1897[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CustomAttribute_CreatePropertyOrFieldData", StringMarshalling = StringMarshalling.Utf16)]
src\System\Reflection\RuntimeModule.cs (3)
403[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeModule_GetFullyQualifiedName")] 418[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeModule_GetTypes")] 479[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeModule_GetScopeName")]
src\System\Runtime\CompilerServices\CastHelpers.cs (28)
17[LibraryImport(RuntimeHelpers.QCall)] 23ThrowInvalidCastException(RuntimeHelpers.GetMethodTable(fromType), toTypeHnd); 27[LibraryImport(RuntimeHelpers.QCall)] 59void* mt = RuntimeHelpers.GetMethodTable(obj); 92MethodTable* mt = RuntimeHelpers.GetMethodTable(obj); 157if (obj == null || RuntimeHelpers.GetMethodTable(obj) == toTypeHnd) 160MethodTable* mt = RuntimeHelpers.GetMethodTable(obj)->ParentMethodTable; 208CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.GetMethodTable(obj), (nuint)toTypeHnd); 232void* mt = RuntimeHelpers.GetMethodTable(obj); 257CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.GetMethodTable(obj), (nuint)toTypeHnd); 274MethodTable* mt = RuntimeHelpers.GetMethodTable(obj); 336if (obj == null || RuntimeHelpers.GetMethodTable(obj) == toTypeHnd) 349MethodTable* mt = RuntimeHelpers.GetMethodTable(obj); 396if (RuntimeHelpers.GetMethodTable(obj) == toTypeHnd) 423void* elementType = RuntimeHelpers.GetMethodTable(array)->ElementType; 440void* elementType = RuntimeHelpers.GetMethodTable(array)->ElementType; 445if (elementType != RuntimeHelpers.GetMethodTable(obj)) 467CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.GetMethodTable(obj), (nuint)elementType); 496void* elementType = RuntimeHelpers.GetMethodTable(array)->ElementType; 497Debug.Assert(elementType != RuntimeHelpers.GetMethodTable(obj)); // Should be handled by caller 499CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.GetMethodTable(obj), (nuint)elementType); 574if (typeMT != RuntimeHelpers.GetMethodTable(obj)) 578Buffer.BulkMoveWithWriteBarrier(ref destPtr, ref RuntimeHelpers.GetRawData(obj), typeMT->GetNullableNumInstanceFieldBytes()); 597if (!IsNullableForType(typeMT, RuntimeHelpers.GetMethodTable(obj))) 606ref byte src = ref RuntimeHelpers.GetRawData(obj); 632ref byte dstData = ref RuntimeHelpers.GetRawData(dst); 648MethodTable* pMT2 = RuntimeHelpers.GetMethodTable(obj); 659return ref RuntimeHelpers.GetRawData(obj);
src\System\Runtime\CompilerServices\GenericsHelpers.cs (1)
14[LibraryImport(RuntimeHelpers.QCall)]
src\System\Runtime\CompilerServices\InitHelpers.cs (1)
13[LibraryImport(RuntimeHelpers.QCall)]
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
1157[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeHandle_CanCastTo_NoCacheLookup")] 1161[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "TypeHandle_GetCorElementType")]
src\System\Runtime\CompilerServices\StaticsHelpers.cs (3)
13[LibraryImport(RuntimeHelpers.QCall)] 16[LibraryImport(RuntimeHelpers.QCall)] 91return ref Unsafe.Subtract(ref RuntimeHelpers.GetRawData(obj), sizeof(MethodTable*));
src\System\Runtime\CompilerServices\VirtualDispatchHelpers.cs (4)
61[LibraryImport(RuntimeHelpers.QCall)] 69s_virtualFunctionPointerCache.TrySet(new VirtualResolutionData(RuntimeHelpers.GetMethodTable(obj), classHandle, methodHandle), result); 77if (s_virtualFunctionPointerCache.TryGet(new VirtualResolutionData(RuntimeHelpers.GetMethodTable(obj), classHandle, methodHandle), out IntPtr result)) 90if (s_virtualFunctionPointerCache.TryGet(new VirtualResolutionData(RuntimeHelpers.GetMethodTable(obj), classHandle, methodHandle), out IntPtr result))
src\System\Runtime\ControlledExecution.CoreCLR.cs (2)
121[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Abort")] 124[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_ResetAbort")]
src\System\Runtime\DependentHandle.cs (2)
246[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DependentHandle_InternalAllocWithGCTransition")] 278[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "DependentHandle_InternalFreeWithGCTransition")]
src\System\Runtime\ExceptionServices\InternalCalls.cs (9)
15[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "SfiInit")] 19[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "SfiNext")] 23[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ResumeAtInterceptionLocation")] 26[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CallCatchFunclet")] 30[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CallFinallyFunclet")] 33[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "CallFilterFunclet")] 38[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AppendExceptionStackFrame")] 41[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EHEnumInitFromStackFrameIterator")] 45[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "EHEnumNext")]
src\System\Runtime\InteropServices\ComWrappers.cs (7)
53[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_TryGetComInstance")] 75[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_TryGetObject")] 157[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_TryGetOrCreateComInterfaceForObject")] 304[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_TryGetOrCreateObjectForComInstance")] 336[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_SetGlobalInstanceRegisteredForTrackerSupport")] 369[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_SetGlobalInstanceRegisteredForMarshalling")] 382[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ComWrappers_GetIUnknownImpl")]
src\System\Runtime\InteropServices\GCHandle.CoreCLR.cs (2)
25[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCHandle_InternalAllocWithGCTransition")] 41[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "GCHandle_InternalFreeWithGCTransition")]
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (11)
35[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_SizeOfHelper")] 58[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_OffsetOf")] 226[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_Prelink")] 249MethodTable* pMT = RuntimeHelpers.GetMethodTable(structure); 279MethodTable* pMT = RuntimeHelpers.GetMethodTable(structure); 329[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_TryGetStructMarshalStub")] 335=> (obj == null) || !RuntimeHelpers.GetMethodTable(obj)->ContainsGCPointers; 375[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_GetExceptionForHR")] 982[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_GetDelegateForFunctionPointerInternal")] 990[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_GetFunctionPointerForDelegateInternal")] 994[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MarshalNative_GetIsInCooperativeGCModeFunctionPointer")]
src\System\Runtime\InteropServices\MemoryMarshal.CoreCLR.cs (1)
44return ref Unsafe.AddByteOffset(ref Unsafe.As<RawData>(array).Data, (nuint)RuntimeHelpers.GetMethodTable(array)->BaseSize - (nuint)(2 * sizeof(IntPtr)));
src\System\Runtime\InteropServices\NativeLibrary.CoreCLR.cs (4)
23[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeLibrary_LoadFromPath", StringMarshalling = StringMarshalling.Utf16)] 26[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeLibrary_LoadByName", StringMarshalling = StringMarshalling.Utf16)] 31[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeLibrary_FreeLib")] 34[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "NativeLibrary_GetSymbol", StringMarshalling = StringMarshalling.Utf16)]
src\System\Runtime\Intrinsics\X86\X86Base.CoreCLR.cs (1)
11[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "X86BaseCpuId")]
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (12)
14[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_InitializeAssemblyLoadContext")] 17[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_PrepareForAssemblyLoadContextRelease")] 21[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_LoadFromStream")] 24[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MultiCoreJIT_InternalSetProfileRoot", StringMarshalling = StringMarshalling.Utf16)] 27[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MultiCoreJIT_InternalStartProfile", StringMarshalling = StringMarshalling.Utf16)] 31[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_LoadFromPath", StringMarshalling = StringMarshalling.Utf16)] 41[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetLoadedAssemblies")] 47[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_TraceResolvingHandlerInvoked", StringMarshalling = StringMarshalling.Utf16)] 51[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_TraceAssemblyResolveHandlerInvoked", StringMarshalling = StringMarshalling.Utf16)] 55[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_TraceAssemblyLoadFromResolveHandlerInvoked", StringMarshalling = StringMarshalling.Utf16)] 59[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_TraceSatelliteSubdirectoryPathProbed", StringMarshalling = StringMarshalling.Utf16)] 146[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "AssemblyNative_GetLoadContextForAssembly")]
src\System\RuntimeHandles.cs (62)
36[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetRuntimeTypeFromHandleSlow")] 123return RuntimeHelpers.IsPrimitiveType(type.GetCorElementType()); 265[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_CreateInstanceForAnotherGenericParameter")] 287[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_InternalAlloc")] 299[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_InternalAllocNoChecks")] 335[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetActivationInfo")] 379[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetAssemblySlow")] 398[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetModuleSlow")] 439[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetMethodAt")] 466[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetArgumentTypesFromFunctionPointer")] 517[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetFields")] 538[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetInterfaces")] 557[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetConstraints")] 570[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "QCall_GetGCHandleForTypeHandle")] 579[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "QCall_FreeGCHandleForTypeHandle")] 591[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetNumVirtualsAndStaticVirtuals")] 600[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_VerifyInterfaceIsImplemented")] 610[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetInterfaceMethodImplementation")] 620[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_IsVisible")] 629[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_ConstructName")] 670[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetDeclaringTypeHandleForGenericVariable")] 673[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetDeclaringTypeHandle")] 703[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetDeclaringMethodForGenericParameter")] 715[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetInstantiation")] 734[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_Instantiate")] 762[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_MakeArray")] 773[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_MakeSZArray")] 784[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_MakeByRef")] 795[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_MakePointer")] 806[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_IsCollectible")] 809[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_GetGenericTypeDefinition")] 836[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_SatisfiesConstraints")] 847[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeTypeHandle_RegisterCollectibleTypeDependency")] 1021[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetFunctionPointer")] 1031[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetIsCollectible")] 1034[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_IsCAVisibleFromDecoratedType")] 1054[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_ConstructInstantiation")] 1135[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_InvokeMethod")] 1163MethodTable* pMT = RuntimeHelpers.GetMethodTable(src); 1189[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetMethodInstantiation")] 1228[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetStubIfNeededSlow")] 1263[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetTypicalMethodDefinition")] 1282[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_StripMethodInstantiation")] 1298[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_Destroy")] 1304[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeMethodHandle_GetMethodBody")] 1513[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_GetRVAFieldInfo")] 1533[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_GetFieldDataReference")] 1546[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_GetValue")] 1568[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_GetValueDirect")] 1589[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_SetValue")] 1609[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "RuntimeFieldHandle_SetValueDirect")] 1709[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_GetDynamicMethod", StringMarshalling = StringMarshalling.Utf8)] 1731[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_GetToken")] 1798[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_ResolveType")] 1850[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_ResolveMethod")] 1904[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_ResolveField")] 1913[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_GetModuleType")] 1923[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_GetPEKind")] 1935[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ModuleHandle_GetMDStreamVersion")] 1966[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Signature_Init")] 2039[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Signature_AreEqual")] 2102[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Signature_GetCustomModifiersAtOffset")]
src\System\RuntimeType.BoxCache.cs (2)
13/// A cache which allows optimizing <see cref="RuntimeHelpers.Box(ref byte, RuntimeTypeHandle)"/>. 132[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ReflectionInvocation_GetBoxInfo")]
src\System\RuntimeType.CoreCLR.cs (3)
3402[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ReflectionInvocation_GetGuid")] 3754return valueCorElement.IsPrimitiveType() && RuntimeHelpers.CanPrimitiveWiden(valueCorElement, targetCorElement); 4314[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MdUtf8String_EqualsCaseInsensitive")]
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (2)
13/// A cache which allows optimizing <see cref="RuntimeHelpers.GetUninitializedObject(Type)"/>. 77[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ReflectionSerialization_GetCreateUninitializedObjectInfo")]
src\System\String.CoreCLR.cs (2)
15[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "String_Intern")] 25[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "String_IsInterned")]
src\System\StubHelpers.cs (23)
612[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdNativeArrayMarshaler_ConvertSpaceToNative")] 621[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdNativeArrayMarshaler_ConvertContentsToNative")] 632[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdNativeArrayMarshaler_ConvertSpaceToManaged")] 642[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdNativeArrayMarshaler_ConvertContentsToManaged")] 656[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdNativeArrayMarshaler_ClearNativeContents")] 707[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdFixedArrayMarshaler_ConvertContentsToNative")] 717[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdFixedArrayMarshaler_ConvertSpaceToManaged")] 726[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdFixedArrayMarshaler_ConvertContentsToManaged")] 736[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MngdFixedArrayMarshaler_ClearNativeContents")] 1326[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_ThrowInteropParamException")] 1359[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_GetHRExceptionObject")] 1395[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_CreateCustomMarshaler")] 1474[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_ProfilerBeginTransitionCallback")] 1477[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_ProfilerEndTransitionCallback")] 1507[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "StubHelpers_SetStringTrailByte")] 1512MethodTable* pMT = RuntimeHelpers.GetMethodTable(obj); 1531MethodTable* pMT = RuntimeHelpers.GetMethodTable(obj); 1550MethodTable* pMT = RuntimeHelpers.GetMethodTable(obj); 1563[LibraryImport(RuntimeHelpers.QCall, EntryPoint="StubHelpers_MarshalToManagedVaList")] 1566[LibraryImport(RuntimeHelpers.QCall, EntryPoint="StubHelpers_MarshalToUnmanagedVaList")] 1575[LibraryImport(RuntimeHelpers.QCall, EntryPoint="StubHelpers_ValidateObject")] 1581[LibraryImport(RuntimeHelpers.QCall, EntryPoint="StubHelpers_ValidateByref")] 1594[LibraryImport(RuntimeHelpers.QCall, EntryPoint="StubHelpers_MulticastDebuggerTraceHelper")]
src\System\Threading\Interlocked.CoreCLR.cs (1)
232[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Interlocked_MemoryBarrierProcessWide")]
src\System\Threading\LowLevelLifoSemaphore.Unix.cs (1)
34[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "WaitHandle_WaitOnePrioritized")]
src\System\Threading\Monitor.CoreCLR.cs (4)
147[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Monitor_Wait")] 165[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Monitor_Pulse")] 177[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Monitor_PulseAll")] 192[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "Monitor_GetLockContentionCount")]
src\System\Threading\Mutex.CoreCLR.Unix.cs (2)
129[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "PAL_CreateMutexW", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)] 132[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "PAL_OpenMutexW", SetLastError = true, StringMarshalling = StringMarshalling.Utf16)]
src\System\Threading\Thread.CoreCLR.cs (15)
98[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Start")] 116[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Sleep")] 122[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_SpinWait")] 126[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_SpinWait")] 149[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_YieldThread")] 162[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_GetCurrentThread")] 171[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Initialize")] 186[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_InformThreadNameChange", StringMarshalling = StringMarshalling.Utf16)] 226[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_GetIsBackground")] 229[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_SetIsBackground")] 257[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_SetPriority")] 280[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_GetCurrentOSThreadId")] 298[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_GetThreadState")] 394[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Interrupt")] 397[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ThreadNative_Join")]
src\System\Threading\WaitHandle.CoreCLR.cs (3)
11[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "WaitHandle_WaitOneCore")] 17[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "WaitHandle_WaitMultipleIgnoringSyncContext")] 32[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "WaitHandle_SignalAndWait")]
src\System\TypedReference.CoreCLR.cs (1)
65result = RuntimeHelpers.Box(pMethodTable, ref value._value);
src\System\TypeLoadException.CoreCLR.cs (1)
49[LibraryImport(RuntimeHelpers.QCall)]
src\System\ValueType.cs (9)
41if (CanCompareBitsOrUseFastGetHashCode(RuntimeHelpers.GetMethodTable(obj))) // MethodTable kept alive by access to object below 44ref RuntimeHelpers.GetRawData(this), 45ref RuntimeHelpers.GetRawData(obj), 46RuntimeHelpers.GetMethodTable(this)->GetNumInstanceFieldBytes()); 85[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "MethodTable_CanCompareBitsOrUseFastGetHashCode")] 106MethodTable* pMT = RuntimeHelpers.GetMethodTable(this); 107ref byte rawData = ref RuntimeHelpers.GetRawData(this); 145hashCode.Add(RuntimeHelpers.Box(fieldMT, ref Unsafe.AddByteOffset(ref rawData, fieldOffset))?.GetHashCode() ?? 0); 164[LibraryImport(RuntimeHelpers.QCall, EntryPoint = "ValueType_GetHashCodeStrategy")]
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
137return (RuntimeHelpers.GetHashCode(o) & 0x7FFFFFFF) % m_objs.Length;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
999return RuntimeHelpers.GetUninitializedObject(type);
System.Private.Windows.Core (2)
System\Private\Windows\Core\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
46RuntimeHelpers.GetUninitializedObject(type);
Windows\Win32\System\Com\ComInterfaceTable.cs (1)
248(ComInterfaceEntry*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(T), sizeof(ComInterfaceEntry) * (count + 1)),
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)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
607[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 (3)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
607hc.Add(RuntimeHelpers.GetHashCode(value));
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
17public override int GetHashCode() => RuntimeHelpers.GetHashCode(_object);
System\Text\Json\StackHelper.cs (1)
15return RuntimeHelpers.TryEnsureSufficientExecutionStack();
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\libraries\System.Text.RegularExpressions\src\System\Threading\StackHelper.cs (1)
20RuntimeHelpers.EnsureSufficientExecutionStack();
System.Windows.Forms.Primitives.TestUtilities (1)
ModuleInitializer.cs (1)
15RuntimeHelpers.RunModuleConstructor(typeof(BoolDataAttribute).Module.ModuleHandle);
VBCSCompiler.UnitTests (1)
eng\config\test\Core\InstallTraceListener.cs (1)
11RuntimeHelpers.RunModuleConstructor(typeof(TestBase).Module.ModuleHandle);