60 references to GetMethodTable
System.Private.CoreLib (60)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
1120
MethodTable* mt = RuntimeHelpers.
GetMethodTable
(exception);
src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
367
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(sourceArray);
368
if (MethodTable.AreSameType(pMT, RuntimeHelpers.
GetMethodTable
(destinationArray)) &&
396
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(sourceArray);
397
if (MethodTable.AreSameType(pMT, RuntimeHelpers.
GetMethodTable
(destinationArray)) &&
src\System\Array.CoreCLR.cs (19)
67
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(sourceArray);
103
void* srcTH = RuntimeHelpers.
GetMethodTable
(sourceArray)->ElementType;
104
void* destTH = RuntimeHelpers.
GetMethodTable
(destinationArray)->ElementType;
153
MethodTable* pDestArrayMT = RuntimeHelpers.
GetMethodTable
(destinationArray);
157
Debug.Assert(!RuntimeHelpers.
GetMethodTable
(sourceArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType);
177
else if (obj is null || RuntimeHelpers.
GetMethodTable
(obj) != pDestMT)
195
MethodTable* pSrcArrayMT = RuntimeHelpers.
GetMethodTable
(sourceArray);
199
Debug.Assert(!RuntimeHelpers.
GetMethodTable
(destinationArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType);
217
void* destTH = RuntimeHelpers.
GetMethodTable
(destinationArray)->ElementType;
241
nuint srcElSize = RuntimeHelpers.
GetMethodTable
(sourceArray)->ComponentSize;
242
nuint destElSize = RuntimeHelpers.
GetMethodTable
(destinationArray)->ComponentSize;
416
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(array);
444
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(array);
475
if (RuntimeHelpers.
GetMethodTable
(this)->IsMultiDimensionalArray)
491
if (RuntimeHelpers.
GetMethodTable
(this)->IsMultiDimensionalArray)
517
MethodTable* pMethodTable = RuntimeHelpers.
GetMethodTable
(this);
621
MethodTable* thisMT = RuntimeHelpers.
GetMethodTable
(this);
622
return (IntPtr)thisMT->ElementType == (IntPtr)RuntimeHelpers.
GetMethodTable
(value);
630
MethodTable* pArrayMT = RuntimeHelpers.
GetMethodTable
(this);
src\System\Delegate.CoreCLR.cs (2)
453
MethodTable* pMTa = RuntimeHelpers.
GetMethodTable
(a);
454
MethodTable* pMTb = RuntimeHelpers.
GetMethodTable
(b);
src\System\Enum.CoreCLR.cs (1)
32
CorElementType elementType = InternalGetCorElementType(RuntimeHelpers.
GetMethodTable
(this));
src\System\Object.CoreCLR.cs (1)
33
if (RuntimeHelpers.
GetMethodTable
(clone)->ContainsGCPointers)
src\System\Runtime\CompilerServices\CastHelpers.cs (15)
36
void* mt = RuntimeHelpers.
GetMethodTable
(obj);
69
MethodTable* mt = RuntimeHelpers.
GetMethodTable
(obj);
134
if (obj == null || RuntimeHelpers.
GetMethodTable
(obj) == toTypeHnd)
137
MethodTable* mt = RuntimeHelpers.
GetMethodTable
(obj)->ParentMethodTable;
183
CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.
GetMethodTable
(obj), (nuint)toTypeHnd);
207
void* mt = RuntimeHelpers.
GetMethodTable
(obj);
232
CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.
GetMethodTable
(obj), (nuint)toTypeHnd);
249
MethodTable* mt = RuntimeHelpers.
GetMethodTable
(obj);
311
if (obj == null || RuntimeHelpers.
GetMethodTable
(obj) == toTypeHnd)
324
MethodTable* mt = RuntimeHelpers.
GetMethodTable
(obj);
371
if (RuntimeHelpers.
GetMethodTable
(obj) == toTypeHnd)
398
void* elementType = RuntimeHelpers.
GetMethodTable
(array)->ElementType;
415
void* elementType = RuntimeHelpers.
GetMethodTable
(array)->ElementType;
420
if (elementType != RuntimeHelpers.
GetMethodTable
(obj))
442
CastResult result = CastCache.TryGet(s_table!, (nuint)RuntimeHelpers.
GetMethodTable
(obj), (nuint)elementType);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (7)
46
MethodTable* pMT =
GetMethodTable
(obj);
152
MethodTable* pMT =
GetMethodTable
(o1);
159
if (pMT !=
GetMethodTable
(o2))
267
MethodTable* pMT =
GetMethodTable
(obj);
284
return
GetMethodTable
(array)->ComponentSize;
299
int rank =
GetMethodTable
(array)->MultiDimensionalArrayRank;
310
return
GetMethodTable
(obj)->HasComponentSize;
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (3)
248
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(structure);
278
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(structure);
334
=> (obj == null) || !RuntimeHelpers.
GetMethodTable
(obj)->ContainsGCPointers;
src\System\Runtime\InteropServices\MemoryMarshal.CoreCLR.cs (1)
44
return ref Unsafe.AddByteOffset(ref Unsafe.As<RawData>(array).Data, (nuint)RuntimeHelpers.
GetMethodTable
(array)->BaseSize - (nuint)(2 * sizeof(IntPtr)));
src\System\StubHelpers.cs (3)
1543
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(obj);
1562
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(obj);
1581
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(obj);
src\System\ValueType.cs (3)
41
if (CanCompareBitsOrUseFastGetHashCode(RuntimeHelpers.
GetMethodTable
(obj))) // MethodTable kept alive by access to object below
46
RuntimeHelpers.
GetMethodTable
(this)->GetNumInstanceFieldBytes());
106
MethodTable* pMT = RuntimeHelpers.
GetMethodTable
(this);