Skip to content

Question: why use Reflection.Emit while we can just invoke type directly #87

@NotAsea

Description

@NotAsea

While browsing along source generated code, i notice you use System.Reflection.Emit and emit IL directly through delegate. The question is why?, i thought this package suppose to be NativeAOT friendly but System.Reflection.Emit is causing trouble in trimming. Why cant we just invoke type constructor directly. Isn't generate code calling type constructor is fastest?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions