Skip to content

Switch to a unified, shared managed parser for Type names #45033

@CoffeeFlux

Description

@CoffeeFlux

Mono currently has a native parser and two managed parsers (TypeNameParser and TypeSpec) for... reasons. Ideally we would only have a single managed implementation, use it as much as possible, and share it with CoreCLR.

Ideally, Mono should share the same assembly name parsing logic as CoreCLR, which is AssemblyNameParser.TryParse.

We can probably share for most uses in reflection. The Mono runtime also calls this internally from some places, and also I think the AOT compiler might need it. One idea is to compile the managed TypeNameParser as a library using NativeAOT and call it from the AOT compiler.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions