4 instantiations of TypeBuilderImpl
System.Reflection.Emit (4)
System\Reflection\Emit\EnumBuilderImpl.cs (1)
19_typeBuilder = new TypeBuilderImpl(name, visibility | TypeAttributes.Sealed, typeof(Enum), module,
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
53_globalTypeBuilder = new TypeBuilderImpl(this); 1058TypeBuilderImpl _type = new TypeBuilderImpl(name, attr, parent, this, interfaces, packingSize, typesize, enclosingType); 1303TypeBuilderImpl _type = new TypeBuilderImpl(name, attr, parent, this, interfaces, packingSize, typesize, null);
53 references to TypeBuilderImpl
System.Reflection.Emit (53)
System\Reflection\Emit\ConstructorBuilderImpl.cs (1)
14Type[][]? requiredCustomModifiers, Type[][]? optionalCustomModifiers, ModuleBuilderImpl module, TypeBuilderImpl type)
System\Reflection\Emit\EnumBuilderImpl.cs (3)
12internal readonly TypeBuilderImpl _typeBuilder; 140[DynamicallyAccessedMembers(TypeBuilderImpl.GetAllMembers)] 144[DynamicallyAccessedMembers(TypeBuilderImpl.GetAllMembers)]
System\Reflection\Emit\EventBuilderImpl.cs (2)
13private readonly TypeBuilderImpl _typeBuilder; 23public EventBuilderImpl(string name, EventAttributes attributes, Type eventType, TypeBuilderImpl typeBuilder)
System\Reflection\Emit\FieldBuilderImpl.cs (2)
15private readonly TypeBuilderImpl _typeBuilder; 29internal FieldBuilderImpl(TypeBuilderImpl typeBuilder, string fieldName, Type type, FieldAttributes attributes, Type[]? requiredCustomModifiers, Type[]? optionalCustomModifiers)
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (4)
25internal GenericTypeParameterBuilderImpl(string name, int genParamPosition, TypeBuilderImpl typeBuilder) 32public GenericTypeParameterBuilderImpl(string name, int genParamPosition, MethodBuilderImpl methodBuilder, TypeBuilderImpl typeBuilder) 131[DynamicallyAccessedMembers(TypeBuilderImpl.GetAllMembers)] 136[DynamicallyAccessedMembers(TypeBuilderImpl.GetAllMembers)]
System\Reflection\Emit\MethodBuilderImpl.cs (2)
21private readonly TypeBuilderImpl _declaringType; 41ModuleBuilderImpl module, TypeBuilderImpl declaringType)
System\Reflection\Emit\ModuleBuilderImpl.cs (27)
21private readonly TypeBuilderImpl _globalTypeBuilder; 25private readonly List<TypeBuilderImpl> _typeDefinitions = new(); 146foreach (TypeBuilderImpl typeBuilder in _typeDefinitions) 203private void WriteInterfaceImplementations(TypeBuilderImpl typeBuilder, TypeDefinitionHandle typeHandle) 226private void WriteEvents(TypeBuilderImpl typeBuilder) 264private void WriteProperties(TypeBuilderImpl typeBuilder) 336foreach (TypeBuilderImpl typeBuilder in _typeDefinitions) 633private void WriteFields(TypeBuilderImpl typeBuilder, BlobBuilder fieldDataBuilder) 819declaringType.GetGenericTypeDefinition() is not TypeBuilderImpl && 933private TypeDefinitionHandle AddTypeDefinition(TypeBuilderImpl type, EntityHandle parent, int methodToken, int fieldToken) => 998if (type is TypeBuilderImpl tb && Equals(tb.Module)) 1017if (member is TypeBuilderImpl tb && Equals(tb.Module)) 1056Type[]? interfaces, PackingSize packingSize, int typesize, TypeBuilderImpl? enclosingType) 1058TypeBuilderImpl _type = new TypeBuilderImpl(name, attr, parent, this, interfaces, packingSize, typesize, enclosingType); 1106return (type.GetGenericTypeDefinition() is TypeBuilderImpl tb && Equals(tb.Module)) || 1113return (elementType is TypeBuilderImpl tbi && Equals(tbi.Module)) || IsConstructedFromTypeBuilder(elementType); 1123if ((type is TypeBuilderImpl tb && Equals(tb.Module)) || (type is GenericTypeParameterBuilderImpl gtb && Equals(gtb.Module))) 1139if (type is TypeBuilderImpl tb && Equals(tb.Module)) 1188arrayMethod.DeclaringType!.GetElementType() is TypeBuilderImpl tb && Equals(tb.Module); 1214internal TypeBuilderImpl? FindTypeBuilderWithName(string strTypeName, bool ignoreCase) 1218foreach (TypeBuilderImpl type in _typeDefinitions) 1303TypeBuilderImpl _type = new TypeBuilderImpl(name, attr, parent, this, interfaces, packingSize, typesize, null); 1388internal List<TypeBuilderImpl> GetNestedTypeBuilders(TypeBuilderImpl declaringType) 1390List<TypeBuilderImpl> nestedTypes = new List<TypeBuilderImpl>(); 1391foreach (TypeBuilderImpl typeBuilder in _typeDefinitions)
System\Reflection\Emit\PropertyBuilderImpl.cs (2)
16private readonly TypeBuilderImpl _containingType; 29internal PropertyBuilderImpl(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers, TypeBuilderImpl containingType)
System\Reflection\Emit\TypeBuilderImpl.cs (10)
21private readonly TypeBuilderImpl? _declaringType; 55Type[]? interfaces, PackingSize packingSize, int typeSize, TypeBuilderImpl? enclosingType) 215(_typeParent.GetGenericTypeDefinition() is TypeBuilderImpl || _module.ContainsTypeBuilder(_typeParent.GetGenericArguments()))) 452TypeBuilderImpl? valueClassType = _module.FindTypeBuilderWithName(strValueClassName, false); 459valueClassType = (TypeBuilderImpl)_module.DefineType(strValueClassName, typeAttributes, _module.GetTypeFromCoreAssembly(CoreTypeId.ValueType), PackingSize.Size1, size); 1120private static BindingFlags GetBindingFlags(TypeBuilderImpl type) 1153foreach (TypeBuilderImpl type in _module.GetNestedTypeBuilders(this)) 1392if (c is TypeBuilderImpl tb) 1431if (t1 is TypeBuilderImpl rtb1) 1433if (t2 is TypeBuilderImpl tb && ReferenceEquals(rtb1, tb))