Skip to content

Use implicit/explicit cast operator if present #7

@ygoe

Description

@ygoe

If the converter is running out of options, it could look for a public static op_Implicit or op_Explicit method on the source type that returns the destination type and accepts a single parameter of the source type, then call it.

See also: https://stackoverflow.com/a/32025393

The reflection result should be cached, and it should be possible to clear the cache on demand to free memory.

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