26 references to AsMethodTable
System.Private.CoreLib (26)
src\System\Array.CoreCLR.cs (8)
156Debug.Assert(!destTH.IsTypeDesc && destTH.AsMethodTable()->IsValueType); 157Debug.Assert(!RuntimeHelpers.GetMethodTable(sourceArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType); 159MethodTable* pDestMT = destTH.AsMethodTable(); 198Debug.Assert(!srcTH.IsTypeDesc && srcTH.AsMethodTable()->IsValueType); 199Debug.Assert(!RuntimeHelpers.GetMethodTable(destinationArray)->GetArrayElementTypeHandle().AsMethodTable()->IsValueType); 201MethodTable* pSrcMT = srcTH.AsMethodTable(); 533MethodTable* pElementMethodTable = arrayElementTypeHandle.AsMethodTable(); 637MethodTable* pElemMT = thElem.AsMethodTable();
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
439MethodTable* pMT = handle.AsMethodTable(); 767/// Only if this returns <see langword="false"/> it is safe to call <see cref="AsMethodTable"/>.
src\System\RuntimeType.CoreCLR.cs (14)
3378bool isValueType = th.AsMethodTable()->IsValueType; 3390bool isValueType = !th.IsTypeDesc && th.AsMethodTable()->IsValueType; 3406bool isEnum = th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<Enum>().AsMethodTable(); 3420bool isEnum = !th.IsTypeDesc && th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<Enum>().AsMethodTable(); 3432bool isInterface = !th.IsTypeDesc && th.AsMethodTable()->IsInterface; 3444bool isByRefLike = !th.IsTypeDesc && th.AsMethodTable()->IsByRefLike; 3454bool isDelegate = !th.IsTypeDesc && th.AsMethodTable()->ParentMethodTable == Runtime.CompilerServices.TypeHandle.TypeHandleOf<MulticastDelegate>().AsMethodTable(); 3465bool isConstructedGenericType = !th.IsTypeDesc && th.AsMethodTable()->IsConstructedGenericType; 3477bool isGenericType = !th.IsTypeDesc && th.AsMethodTable()->HasInstantiation; 3489bool isGenericTypeDefinition = !th.IsTypeDesc && th.AsMethodTable()->IsGenericTypeDefinition; 3645bool isNullable = !th.IsTypeDesc && th.AsMethodTable()->IsNullable;
src\System\TypedReference.CoreCLR.cs (2)
33? TypeHandle.TypeHandleOf<UIntPtr>().AsMethodTable() 34: typeHandle.AsMethodTable();