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