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)
120ModuleDefinitionHandle moduleHandle = _metadataBuilder.AddModule( 122moduleName: _metadataBuilder.GetOrAddString(_name), 123mvid: _metadataBuilder.GetOrAddGuid(_moduleVersionId), 128_metadataBuilder.AddTypeDefinition( 131name: _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( 720signature: _metadataBuilder.GetOrAddBlob(MetadataSignatureHelper.GetTypeSpecificationSignature(type, this))); 723_metadataBuilder.AddMethodSpecification( 725instantiation: _metadataBuilder.GetOrAddBlob(MetadataSignatureHelper.GetMethodSpecificationSignature(genericArgs, this))); 871GenericParameterHandle handle = _metadataBuilder.AddGenericParameter( 874name: _metadataBuilder.GetOrAddString(gParam.Name), 880_metadataBuilder.AddGenericParameterConstraint(handle, GetTypeHandle(constraint)); 896_metadataBuilder.AddConstant(parent: parentHandle, value: defaultValue); 900_metadataBuilder.AddMethodSemantics( 906_metadataBuilder.AddProperty( 908name: _metadataBuilder.GetOrAddString(property.Name), 909signature: _metadataBuilder.GetOrAddBlob(signature)); 912_metadataBuilder.AddEvent( 914name: _metadataBuilder.GetOrAddString(eventBuilder.Name), 918_metadataBuilder.AddEventMap( 923_metadataBuilder.AddPropertyMap( 928_metadataBuilder.AddFieldDefinition( 930name: _metadataBuilder.GetOrAddString(field.Name), 931signature: _metadataBuilder.GetOrAddBlob(fieldSignature)); 934_metadataBuilder.AddTypeDefinition( 936@namespace: (type.Namespace == null) ? default : _metadataBuilder.GetOrAddString(type.Namespace), 937name: _metadataBuilder.GetOrAddString(type.Name), 943_metadataBuilder.AddMethodDefinition( 946name: _metadataBuilder.GetOrAddString(method.Name), 947signature: _metadataBuilder.GetOrAddBlob(methodSignature), 952_metadataBuilder.AddTypeReference( 954@namespace: (ns == null) ? default : _metadataBuilder.GetOrAddString(ns), 955name: _metadataBuilder.GetOrAddString(name)); 958_metadataBuilder.AddMemberReference( 960name: _metadataBuilder.GetOrAddString(memberName), 961signature: _metadataBuilder.GetOrAddBlob(signature)); 965_metadataBuilder.AddMethodImport( 968name: _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( 983name: parameter.Name != null ? _metadataBuilder.GetOrAddString(parameter.Name) : default, 988_metadataBuilder.AddAssemblyReference( 989name: name == null ? default : _metadataBuilder.GetOrAddString(name), 991culture: (culture == null) ? default : _metadataBuilder.GetOrAddString(value: culture), 992publicKeyOrToken: (publicKeyToken == null) ? default : _metadataBuilder.GetOrAddBlob(publicKeyToken), 1229public override int GetStringMetadataToken(string stringConstant) => MetadataTokens.GetToken(_metadataBuilder.GetOrAddUserString(stringConstant)); 1361MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature(_metadataBuilder.GetOrAddBlob(signature.GetSignature()))); 1364MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature( 1365_metadataBuilder.GetOrAddBlob(MetadataSignatureHelper.GetMethodSignature(this, parameterTypes, returnType, 1369MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature(_metadataBuilder.GetOrAddBlob(