29 references to Of
System.Private.CoreLib (29)
Internal\Runtime\Augments\RuntimeAugments.cs (2)
78
Debug.Assert(MethodTable.
Of
<object>()->NumVtableSlots > 0);
267
return RuntimeExports.RhBox(MethodTable.
Of
<IntPtr>(), ref address);
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (2)
614
if (!RuntimeImports.AreTypesAssignable(pMarshallerType.ToMethodTable(), MethodTable.
Of
<ICustomMarshaler>()))
625
if (!RuntimeImports.AreTypesAssignable(marshaller.GetMethodTable(), MethodTable.
Of
<ICustomMarshaler>()))
Internal\Runtime\FrozenObjectHeapManager.cs (1)
29
MethodTable* pMT = MethodTable.
Of
<T>();
Internal\Runtime\MethodTable.Runtime.cs (3)
17
return MethodTable.
Of
<Array>();
40
return IsPrimitive && (IsGenericTypeDefinition || NonArrayBaseType != MethodTable.
Of
<ValueType>());
50
&& NonArrayBaseType == MethodTable.
Of
<ValueType>();
Internal\Runtime\ThreadStatics.cs (1)
40
TypeManagerHandle typeManager = MethodTable.
Of
<object>()->TypeManager;
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (1)
816
if (array.GetMethodTable() == MethodTable.
Of
<object[]>())
System\Activator.NativeAot.cs (1)
56
t = RawCalliHelper.Call<T>(allocator, (nint)MethodTable.
Of
<T>());
System\Array.NativeAot.cs (1)
49
return MethodTable.
Of
<Array>();
System\GC.NativeAot.cs (2)
842
RuntimeImports.RhAllocateNewArray(MethodTable.
Of
<T[]>(), (uint)length, (uint)flags, &array);
869
RuntimeImports.RhAllocateNewArray(MethodTable.
Of
<T[]>(), (uint)length, (uint)flags, &array);
System\InvokeUtils.cs (1)
65
throw CreateChangeTypeException(MethodTable.
Of
<object>(), dstEEType, semantics);
System\Reflection\DynamicInvokeInfo.cs (8)
220
MethodTable.
Of
<IntPtr>() : _returnType);
288
MethodTable.
Of
<IntPtr>() : _returnType);
354
MethodTable.
Of
<IntPtr>() : _returnType);
612
MethodTable.
Of
<IntPtr>() : argumentInfo.Type);
722
MethodTable.
Of
<IntPtr>() : argumentInfo.Type);
797
(transform & Transform.FunctionPointer) != 0 ? MethodTable.
Of
<IntPtr>() : argumentInfo.Type,
831
(transform & Transform.FunctionPointer) != 0 ? MethodTable.
Of
<IntPtr>() : argumentInfo.Type,
862
obj = RuntimeExports.RhBox(MethodTable.
Of
<IntPtr>(), ref byref);
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (1)
341
if (RuntimeImports.AreTypesAssignable(mt, MethodTable.
Of
<Delegate>()))
System\Runtime\InteropServices\ComWrappers.NativeAot.cs (1)
26
if (!RuntimeImports.RhRegisterRefCountedHandleCallback((nint)callback, MethodTable.
Of
<ManagedObjectWrapperHolder>()))
System\Runtime\InteropServices\Marshal.NativeAot.cs (1)
102
RuntimeImports.AreTypesAssignable(MethodTable.
Of
<Delegate>(), structureTypeHandle.ToMethodTable()))
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
234
if (delegateType.ToMethodTable()->BaseType != MethodTable.
Of
<MulticastDelegate>())
System\RuntimeExceptionHelpers.cs (1)
299
Internal.Console.Error.Write(exception.GetMethodTable() == Internal.Runtime.MethodTable.
Of
<OutOfMemoryException>() ? "Out of memory." : exception.GetType().FullName);
System\String.NativeAot.cs (1)
32
string newStr = FastAllocateString(MethodTable.
Of
<string>(), length);