<PackageReference Include="System.Reflection.Emit" Version="4.6.0-rc1.19456.4" />

AssemblyBuilder

public sealed class AssemblyBuilder : Assembly
Defines and represents a dynamic assembly.

Defines a dynamic assembly that has the specified name and access rights.

Defines a new assembly that has the specified name, access rights, and attributes.

public ModuleBuilder DefineDynamicModule(string name)

Defines a named transient dynamic module in this assembly.

public ModuleBuilder GetDynamicModule(string name)

Returns the dynamic module with the specified name.

public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)

Set a custom attribute on this assembly using a specified custom attribute blob.

public void SetCustomAttribute(CustomAttributeBuilder customBuilder)

Set a custom attribute on this assembly using a custom attribute builder.