You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider adding cast operators to System.Drawing types #626
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
elachlan commentedon Jul 28, 2022
Andrew Arnott (@AArnott) should they be added via templates or directly in the generator?