57 references to RuntimeTypeHandle
System.Private.TypeLoader (57)
Internal\Runtime\TypeLoader\EETypeCreator.cs (2)
623Debug.Assert(state.TemplateType != null && !state.TemplateType.RuntimeTypeHandle.IsNull()); 624RuntimeTypeHandle templateTypeHandle = state.TemplateType.RuntimeTypeHandle;
Internal\Runtime\TypeLoader\NativeLayoutInterfacesAlgorithm.cs (1)
21int totalInterfaces = RuntimeAugments.GetInterfaceCount(state.TemplateType.RuntimeTypeHandle);
Internal\Runtime\TypeLoader\NoMetadataRuntimeInterfacesAlgorithm.cs (2)
18int numInterfaces = RuntimeAugments.GetInterfaceCount(type.RuntimeTypeHandle); 22RuntimeTypeHandle itfHandle = RuntimeAugments.GetInterface(type.RuntimeTypeHandle, i);
Internal\Runtime\TypeLoader\TypeBuilder.cs (17)
184Debug.Assert(state.TemplateType == null || (state.TemplateType is DefType && !state.TemplateType.RuntimeTypeHandle.IsNull())); 208Debug.Assert(state.TemplateType != null && state.TemplateType is ArrayType && !state.TemplateType.RuntimeTypeHandle.IsNull()); 307method.SetFunctionPointer(TypeLoaderEnvironment.ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(templateMethod.FunctionPointer, templateMethod.OwningType.RuntimeTypeHandle)); 543var rtth = type.RuntimeTypeHandle; 569RuntimeTypeHandle thBaseTypeTemplate = type.RuntimeTypeHandle.ToEETypePtr()->BaseType->ToRuntimeTypeHandle(); 934Debug.Assert(!typeAsFunctionPointerType.RuntimeTypeHandle.IsNull()); 935TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle); 940Debug.Assert(!typeAsParameterizedType.RuntimeTypeHandle.IsNull()); 941Debug.Assert(!typeAsParameterizedType.ParameterType.RuntimeTypeHandle.IsNull()); 944TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 946TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 951Debug.Assert(typeAsParameterizedType.RuntimeTypeHandle.ToEETypePtr()->IsByRef); 953TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 960Debug.Assert(typeAsParameterizedType.RuntimeTypeHandle.ToEETypePtr()->IsPointer); 962TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 1135runtimeTypeHandle = typeBeingLoaded.RuntimeTypeHandle; 1161arrayTypeHandle = arrayType.RuntimeTypeHandle;
Internal\Runtime\TypeLoader\TypeBuilderState.cs (5)
84Debug.Assert(_templateType == null || !_templateType.RuntimeTypeHandle.IsNull()); 218return TypeBeingBuilt.RuntimeTypeHandle.GetDictionary() != IntPtr.Zero; 248return TypeBeingBuilt.RuntimeTypeHandle.ToEETypePtr()->NumVtableSlots; 439return new TypeBuilder.GCLayout(fieldType.RuntimeTypeHandle); 449return new TypeBuilder.GCLayout(templateType.RuntimeTypeHandle);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericTypesLookup.cs (3)
103_genericTypeDefinitionHandle = _typeToLookup.GetTypeDefinition().RuntimeTypeHandle; 131RuntimeTypeHandle lookupArg = (_typeToLookup != null ? _typeToLookup.Instantiation[i].RuntimeTypeHandle : _genericTypeArgumentHandles[i]); 155if (!entry._genericTypeArgumentHandles[i].Equals(_typeToLookup.Instantiation[i].RuntimeTypeHandle))
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (3)
162if (type.RuntimeTypeHandle.IsNull()) 182Debug.Assert(!type.RuntimeTypeHandle.IsNull()); 183return !type.RuntimeTypeHandle.IsNull();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (8)
209if (!targetType.GetTypeDefinition().RuntimeTypeHandle.Equals(implementingTypeHandle) 271while (!interfaceImplType.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 274else if (currentIfaceType.HasInstantiation && currentIfaceType.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 289if (instIntf.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 332RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 335RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle; 458RuntimeTypeHandle openCallingTypeHandle = GetTypeDefinition(slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle); 461RuntimeTypeHandle openTargetTypeHandle = GetTypeDefinition(targetType.GetTypeDefinition().RuntimeTypeHandle);
Internal\TypeSystem\RuntimeNoMetadataType.cs (4)
117if (!RuntimeAugments.TryGetBaseType(RuntimeTypeHandle, out baseTypeHandle)) 316EETypeElementType elementType = RuntimeTypeHandle.ToEETypePtr()->ElementType; 392else if (!RuntimeTypeHandle.IsNull()) 393sb.Append(RuntimeTypeHandle.LowLevelToString());
Internal\TypeSystem\TypeDesc.Runtime.cs (8)
48return RuntimeTypeHandle; 62if (!type.RuntimeTypeHandle.IsNull()) 72RuntimeTypeHandle typeDefHandle = typeDefinition.RuntimeTypeHandle; 111TypeLoaderEnvironment.TryGetArrayTypeForElementType_LookupOnly(typeAsParameterType.ParameterType.RuntimeTypeHandle, type.IsMdArray, type.IsMdArray ? ((ArrayType)type).Rank : -1, out rtth)) 113(type is PointerType && TypeLoaderEnvironment.TryGetPointerTypeForTargetType_LookupOnly(typeAsParameterType.ParameterType.RuntimeTypeHandle, out rtth)) 115(type is ByRefType && TypeLoaderEnvironment.TryGetByRefTypeForTargetType_LookupOnly(typeAsParameterType.ParameterType.RuntimeTypeHandle, out rtth))) 137parameterHandles[i] = sig[i].RuntimeTypeHandle; 148sig.ReturnType.RuntimeTypeHandle, parameterHandles,
Internal\TypeSystem\TypeSystemContext.Runtime.cs (4)
187if (rtth.Equals(CanonType.RuntimeTypeHandle)) 259if (returnedType.RuntimeTypeHandle.IsNull()) 474Debug.Assert(RuntimeAugments.IsGenericTypeDefinition(nmTypeDef.RuntimeTypeHandle)); 475result = new NoMetadataType(this, nmTypeDef.RuntimeTypeHandle, nmTypeDef, arguments, key.GetHashCode());