Skip to content

Compile to (Memory)Stream #42

@h3x4d3c1m4l

Description

@h3x4d3c1m4l

Hi,

As a developer that writes dynamic code, I need to compile code which I have to use at runtime immediately. Saving it to first to file and then load the assembly file could be a solution, but this will not work on Blazor (.NET running on WebAssembly in the webbrowser).

I would like to be able to write the assembly to a MemoryStream which I can then load using the Assembly.Load(byte[] rawAssembly) overload.

Currently adding save to Stream functionality to Compiler.cs. If you think this might be useful too I can submit a PR so you can take a look at the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions