<PackageReference Include="Microsoft.Packaging.Tools" Version="1.0.0-preview1-25301-01" />

System.Reflection.Metadata.Ecma335.MetadataBuilder

sealed class MetadataBuilder
public MetadataBuilder(int userStringHeapStartOffset = 0, int stringHeapStartOffset = 0, int blobHeapStartOffset = 0, int guidHeapStartOffset = 0)

public AssemblyFileHandle AddAssemblyFile(StringHandle name, BlobHandle hashValue, bool containsMetadata)

public AssemblyReferenceHandle AddAssemblyReference(StringHandle name, Version version, StringHandle culture, BlobHandle publicKeyOrToken, AssemblyFlags flags, BlobHandle hashValue)

public ConstantHandle AddConstant(EntityHandle parent, object value)

public DocumentHandle AddDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash, GuidHandle language)

public void AddEncMapEntry(EntityHandle entity)

public void AddEventMap(TypeDefinitionHandle declaringType, EventDefinitionHandle eventList)

public ExportedTypeHandle AddExportedType(TypeAttributes attributes, StringHandle namespace, StringHandle name, EntityHandle implementation, int typeDefinitionId)

public void AddFieldLayout(FieldDefinitionHandle field, int offset)

public void AddFieldRelativeVirtualAddress(FieldDefinitionHandle field, int relativeVirtualAddress)

public LocalScopeHandle AddLocalScope(MethodDefinitionHandle method, ImportScopeHandle importScope, LocalVariableHandle variableList, LocalConstantHandle constantList, int startOffset, int length)

public void AddMarshallingDescriptor(EntityHandle parent, BlobHandle descriptor)

public MethodDefinitionHandle AddMethodDefinition(MethodAttributes attributes, MethodImplAttributes implAttributes, StringHandle name, BlobHandle signature, int bodyOffset, ParameterHandle paramList)

public void AddMethodSemantics(EntityHandle association, MethodSemanticsAttributes semantics, MethodDefinitionHandle methodDefinition)

public ModuleDefinitionHandle AddModule(int generation, StringHandle moduleName, GuidHandle mvid, GuidHandle encId, GuidHandle encBaseId)

public void AddNestedType(TypeDefinitionHandle type, TypeDefinitionHandle enclosingType)

public ParameterHandle AddParameter(ParameterAttributes attributes, StringHandle name, int sequenceNumber)

public void AddPropertyMap(TypeDefinitionHandle declaringType, PropertyDefinitionHandle propertyList)

public void AddStateMachineMethod(MethodDefinitionHandle moveNextMethod, MethodDefinitionHandle kickoffMethod)

public void AddTypeLayout(TypeDefinitionHandle type, ushort packingSize, uint size)

public uint GetExportedTypeFlags(int rowId)

public BlobHandle GetOrAddBlob(byte[] value)

public BlobHandle GetOrAddBlobUTF16(string value)

public BlobHandle GetOrAddBlobUTF8(string value, bool allowUnpairedSurrogates = true)

public BlobHandle GetOrAddConstantBlob(object value)

public StringHandle GetOrAddString(string value)

public UserStringHandle GetOrAddUserString(string value)

public GuidHandle ReserveGuid(out Blob content)

public UserStringHandle ReserveUserString(int length, out Blob reservedUserString)

public void SetCapacity(TableIndex table, int rowCount)

public void SetCapacity(HeapIndex heap, int byteCount)