Skip to content

Consider adding cast operators to System.Drawing types #626

Closed

Description

Is your feature request related to a problem? Please describe.
It is tedious and error prone (particularly with RECT/Rectangle) to convert between the native types and System.Drawing types (Point, Size, Rectangle, and *F variants).

Describe the solution you'd like
In Windows Forms we define the RECT, POINT, etc. structs with cast operators (often implicit). We also provide useful properties on RECT for convenience, notably .Width and .Height.

Activity

  1. elachlan commented on Jul 28, 2022

    @elachlan
    Contributor

    Andrew Arnott (@AArnott) should they be added via templates or directly in the generator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementpartner

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions