Skip to content

Use UnsafeAccessorAttribute in dotnet8 instead of reflection #16

@Genmutant

Description

@Genmutant

Would it be possible to generate private method accessors using UnsafeAccessorAttribute when targetting at least dotnet8?
That would make it safe to use with NativeAOT and Trimming, as the accessed attributes are marked as used and not removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions