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