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