1 write to _metadataBuilder
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
50
_metadataBuilder
= builder;
65 references to _metadataBuilder
System.Reflection.Emit (65)
System\Reflection\Emit\ModuleBuilderImpl.cs (65)
120
ModuleDefinitionHandle moduleHandle =
_metadataBuilder
.AddModule(
122
moduleName:
_metadataBuilder
.GetOrAddString(_name),
123
mvid:
_metadataBuilder
.GetOrAddGuid(_moduleVersionId),
128
_metadataBuilder
.AddTypeDefinition(
131
name:
_metadataBuilder
.GetOrAddString("<Module>"),
170
_metadataBuilder
.AddTypeLayout(typeHandle, (ushort)typeBuilder.PackingSize, (uint)typeBuilder.Size);
175
_metadataBuilder
.AddNestedType(typeHandle, (TypeDefinitionHandle)GetTypeHandle(typeBuilder.DeclaringType));
209
_metadataBuilder
.AddInterfaceImplementation(typeHandle, GetTypeHandle(iface));
220
_metadataBuilder
.AddMethodImplementation(typeHandle, GetMemberHandle(pair.targetMethod), GetMemberHandle(pair.ifaceMethod));
362
_metadataBuilder
.AddStandaloneSignature(
_metadataBuilder
.GetOrAddBlob(MetadataSignatureHelper.GetLocalSignature(il.Locals, this)));
659
_metadataBuilder
.AddFieldRelativeVirtualAddress(handle, fieldDataBuilder.Count);
685
_metadataBuilder
.AddCustomAttribute(parent, GetMemberHandle(customAttribute.Ctor),
686
_metadataBuilder
.GetOrAddBlob(customAttribute.Data));
719
_metadataBuilder
.AddTypeSpecification(
720
signature:
_metadataBuilder
.GetOrAddBlob(MetadataSignatureHelper.GetTypeSpecificationSignature(type, this)));
723
_metadataBuilder
.AddMethodSpecification(
725
instantiation:
_metadataBuilder
.GetOrAddBlob(MetadataSignatureHelper.GetMethodSpecificationSignature(genericArgs, this)));
871
GenericParameterHandle handle =
_metadataBuilder
.AddGenericParameter(
874
name:
_metadataBuilder
.GetOrAddString(gParam.Name),
880
_metadataBuilder
.AddGenericParameterConstraint(handle, GetTypeHandle(constraint));
896
_metadataBuilder
.AddConstant(parent: parentHandle, value: defaultValue);
900
_metadataBuilder
.AddMethodSemantics(
906
_metadataBuilder
.AddProperty(
908
name:
_metadataBuilder
.GetOrAddString(property.Name),
909
signature:
_metadataBuilder
.GetOrAddBlob(signature));
912
_metadataBuilder
.AddEvent(
914
name:
_metadataBuilder
.GetOrAddString(eventBuilder.Name),
918
_metadataBuilder
.AddEventMap(
923
_metadataBuilder
.AddPropertyMap(
928
_metadataBuilder
.AddFieldDefinition(
930
name:
_metadataBuilder
.GetOrAddString(field.Name),
931
signature:
_metadataBuilder
.GetOrAddBlob(fieldSignature));
934
_metadataBuilder
.AddTypeDefinition(
936
@namespace: (type.Namespace == null) ? default :
_metadataBuilder
.GetOrAddString(type.Namespace),
937
name:
_metadataBuilder
.GetOrAddString(type.Name),
943
_metadataBuilder
.AddMethodDefinition(
946
name:
_metadataBuilder
.GetOrAddString(method.Name),
947
signature:
_metadataBuilder
.GetOrAddBlob(methodSignature),
952
_metadataBuilder
.AddTypeReference(
954
@namespace: (ns == null) ? default :
_metadataBuilder
.GetOrAddString(ns),
955
name:
_metadataBuilder
.GetOrAddString(name));
958
_metadataBuilder
.AddMemberReference(
960
name:
_metadataBuilder
.GetOrAddString(memberName),
961
signature:
_metadataBuilder
.GetOrAddBlob(signature));
965
_metadataBuilder
.AddMethodImport(
968
name:
_metadataBuilder
.GetOrAddString(name),
972
_metadataBuilder
.AddModuleReference(moduleName:
_metadataBuilder
.GetOrAddString(moduleName));
975
_metadataBuilder
.AddFieldLayout(field: fieldHandle, offset: offset);
978
_metadataBuilder
.AddMarshallingDescriptor(parent: parent, descriptor:
_metadataBuilder
.GetOrAddBlob(builder));
981
_metadataBuilder
.AddParameter(
983
name: parameter.Name != null ?
_metadataBuilder
.GetOrAddString(parameter.Name) : default,
988
_metadataBuilder
.AddAssemblyReference(
989
name: name == null ? default :
_metadataBuilder
.GetOrAddString(name),
991
culture: (culture == null) ? default :
_metadataBuilder
.GetOrAddString(value: culture),
992
publicKeyOrToken: (publicKeyToken == null) ? default :
_metadataBuilder
.GetOrAddBlob(publicKeyToken),
1229
public override int GetStringMetadataToken(string stringConstant) => MetadataTokens.GetToken(
_metadataBuilder
.GetOrAddUserString(stringConstant));
1361
MetadataTokens.GetToken(
_metadataBuilder
.AddStandaloneSignature(
_metadataBuilder
.GetOrAddBlob(signature.GetSignature())));
1364
MetadataTokens.GetToken(
_metadataBuilder
.AddStandaloneSignature(
1365
_metadataBuilder
.GetOrAddBlob(MetadataSignatureHelper.GetMethodSignature(this, parameterTypes, returnType,
1369
MetadataTokens.GetToken(
_metadataBuilder
.AddStandaloneSignature(
_metadataBuilder
.GetOrAddBlob(