24 references to GetTypeFromMethodTable
System.Private.CoreLib (24)
Internal\Runtime\Augments\RuntimeAugments.cs (1)
82
throw ReflectionCoreExecution.ExecutionEnvironment.CreateMissingMetadataException(Type.
GetTypeFromMethodTable
(mt));
System\Array.NativeAot.cs (1)
251
RuntimeType elementType = Type.
GetTypeFromMethodTable
(pEEType->RelatedParameterType);
System\Object.NativeAot.cs (1)
25
return Type.
GetTypeFromMethodTable
(m_pEEType);
System\Reflection\DynamicInvokeInfo.cs (5)
581
defaultValue = Enum.ToObject(Type.
GetTypeFromMethodTable
(nullableType), defaultValue);
756
Type type = Type.
GetTypeFromMethodTable
(argumentInfo.Type);
791
Type type = Type.
GetTypeFromMethodTable
(argumentInfo.Type);
821
Type type = Type.
GetTypeFromMethodTable
(_returnType);
827
Debug.Assert(Type.
GetTypeFromMethodTable
(_returnType).IsFunctionPointer);
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (1)
349
return GetUninitializedObject(Type.
GetTypeFromMethodTable
(mt));
System\Runtime\InteropServices\IDynamicInterfaceCastable.cs (5)
62
throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, instance.GetType(), Type.
GetTypeFromMethodTable
(interfaceType)));
67
throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_NotInterface, Type.
GetTypeFromMethodTable
(resolvedImplType)));
73
throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_MissingImplementationAttribute, Type.
GetTypeFromMethodTable
(resolvedImplType), nameof(DynamicInterfaceCastableImplementationAttribute)));
87
throw new InvalidOperationException(SR.Format(SR.IDynamicInterfaceCastable_DoesNotImplementRequested, Type.
GetTypeFromMethodTable
(resolvedImplType), Type.
GetTypeFromMethodTable
(interfaceType)));
System\RuntimeType.NativeAot.cs (8)
133
return
GetTypeFromMethodTable
(pEEType->NullableType);
317
return pEEType->IsParameterizedType ?
GetTypeFromMethodTable
(pEEType->RelatedParameterType) : null;
339
return (pBaseType != null) ?
GetTypeFromMethodTable
(pBaseType) : null;
370
result[i] =
GetTypeFromMethodTable
(pEEType->InterfaceMap[i]);
427
return pEEType->IsGeneric ?
GetTypeFromMethodTable
(pEEType->GenericDefinition) :
449
result[i] =
GetTypeFromMethodTable
(genericArguments[i]);
588
result[i] =
GetTypeFromMethodTable
(parameterTypes[i]);
604
return
GetTypeFromMethodTable
(pEEType->FunctionPointerReturnType);
System\Type.NativeAot.cs (2)
23
public static unsafe Type? GetTypeFromHandle(RuntimeTypeHandle handle) => handle.IsNull ? null :
GetTypeFromMethodTable
(handle.ToMethodTable());
26
internal static unsafe RuntimeType? GetTypeFromMethodTableMaybeNull(MethodTable* pMT) => (pMT == null) ? null :
GetTypeFromMethodTable
(pMT);