51 references to RuntimeTypeHandle
System.Private.TypeLoader (51)
Internal\Runtime\TypeLoader\EETypeCreator.cs (4)
403elementHandle = elementType.ComputeTemplate().RuntimeTypeHandle; 498Debug.Assert(state.TemplateType != null && !state.TemplateType.RuntimeTypeHandle.IsNull()); 499RuntimeTypeHandle templateTypeHandle = state.TemplateType.RuntimeTypeHandle; 544baseTypeHandle = baseType.ComputeTemplate().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 (16)
181Debug.Assert(state.TemplateType != null && state.TemplateType is ArrayType && !state.TemplateType.RuntimeTypeHandle.IsNull()); 274method.SetFunctionPointer(TypeLoaderEnvironment.ConvertUnboxingFunctionPointerToUnderlyingNonUnboxingPointer(templateMethod.FunctionPointer, templateMethod.OwningType.RuntimeTypeHandle)); 417var rtth = type.RuntimeTypeHandle; 503RuntimeTypeHandle baseTypeHandle = baseType.RuntimeTypeHandle; 830Debug.Assert(!typeAsFunctionPointerType.RuntimeTypeHandle.IsNull()); 831TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle); 836Debug.Assert(!typeAsParameterizedType.RuntimeTypeHandle.IsNull()); 837Debug.Assert(!typeAsParameterizedType.ParameterType.RuntimeTypeHandle.IsNull()); 840TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 842TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 847Debug.Assert(typeAsParameterizedType.RuntimeTypeHandle.ToEETypePtr()->IsByRef); 849TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 856Debug.Assert(typeAsParameterizedType.RuntimeTypeHandle.ToEETypePtr()->IsPointer); 858TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 1031runtimeTypeHandle = typeBeingLoaded.RuntimeTypeHandle; 1057arrayTypeHandle = arrayType.RuntimeTypeHandle;
Internal\Runtime\TypeLoader\TypeBuilderState.cs (1)
72Debug.Assert(_templateType is null || !_templateType.RuntimeTypeHandle.IsNull());
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)
170if (type.RuntimeTypeHandle.IsNull()) 190Debug.Assert(!type.RuntimeTypeHandle.IsNull()); 191return !type.RuntimeTypeHandle.IsNull();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (8)
230if (!targetType.GetTypeDefinition().RuntimeTypeHandle.Equals(implementingTypeHandle) 292while (!interfaceImplType.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 295else if (currentIfaceType.HasInstantiation && currentIfaceType.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 310if (instIntf.GetTypeDefinition().RuntimeTypeHandle.Equals(targetTypeHandle)) 353RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 356RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle; 479RuntimeTypeHandle openCallingTypeHandle = slotMethod.OwningType.GetTypeDefinition().RuntimeTypeHandle; 482RuntimeTypeHandle openTargetTypeHandle = targetType.GetTypeDefinition().RuntimeTypeHandle;
Internal\TypeSystem\RuntimeNoMetadataType.cs (2)
117if (!RuntimeAugments.TryGetBaseType(RuntimeTypeHandle, out baseTypeHandle)) 316EETypeElementType elementType = RuntimeTypeHandle.ToEETypePtr()->ElementType;
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)
185if (rtth.Equals(CanonType.RuntimeTypeHandle)) 257if (returnedType.RuntimeTypeHandle.IsNull()) 472Debug.Assert(RuntimeAugments.IsGenericTypeDefinition(nmTypeDef.RuntimeTypeHandle)); 473result = new NoMetadataType(this, nmTypeDef.RuntimeTypeHandle, nmTypeDef, arguments, key.GetHashCode());