13 references to GetTypeHandle
System.Reflection.Emit (13)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
66GetMetaLabel(eb.HandlerStart), GetMetaLabel(eb.HandlerEnd), _moduleBuilder.GetTypeHandle(eb.ExceptionType!));
System\Reflection\Emit\ModuleBuilderImpl.cs (9)
153parent = GetTypeHandle(typeBuilder.BaseType); 175_metadataBuilder.AddNestedType(typeHandle, (TypeDefinitionHandle)GetTypeHandle(typeBuilder.DeclaringType)); 209_metadataBuilder.AddInterfaceImplementation(typeHandle, GetTypeHandle(iface)); 236EventDefinitionHandle eventHandle = AddEventDefinition(eventBuilder, GetTypeHandle(eventBuilder.EventType)); 744memberHandle = AddMemberReference(field.Name, GetTypeHandle(declaringType), 750memberHandle = AddMemberReference(ctor.Name, GetTypeHandle(memberInfo.DeclaringType!), MetadataSignatureHelper.GetConstructorSignature(ctor.GetParameters(), this)); 759memberHandle = AddMemberReference(sm.Name, GetTypeHandle(sm.DeclaringType!), GetMethodArrayMethodSignature(sm)); 764memberHandle = AddMemberReference(method.Name, GetTypeHandle(memberInfo.DeclaringType!), GetMethodSignature(method, null)); 880_metadataBuilder.AddGenericParameterConstraint(handle, GetTypeHandle(constraint));
System\Reflection\Emit\SignatureHelper.cs (3)
125encoder.AddModifier(module.GetTypeHandle(modifier), isOptional); 199module.GetTypeHandle(type.GetGenericTypeDefinition()), genericArguments.Length, type.IsValueType); 291EntityHandle typeHandle = module.GetTypeHandle(type);