Repository navigation
Add drawing types templates - #628
Merged
Merged
Conversation
Contributor
Author
Andrew Arnott (AArnott)
suggested changes
Jul 28, 2022
Andrew Arnott (AArnott)
left a comment
Member
There was a problem hiding this comment.
Looks like you added the functionality all right where it fits the design. Thank you. Just a couple of changes, please.
…enerated when allowMarshaling is set
The `SIZE` and and `RECT` structs have no BCL equivalents, at least not with the fields in the right order.
Andrew Arnott (AArnott)
approved these changes
Aug 3, 2022
Andrew Arnott (AArnott)
left a comment
Member
There was a problem hiding this comment.
It turns out that SIZE cannot be replaced with the BCL Size struct because the fields are in a different order. I moved POINT and POINTF to another dictionary in the generator so that they are never generated, even when not marshaling, since the BCL struct types should be adequate and this gives an even better interop experience. I deleted the point templates since we never generate those types any more.
Thank you for starting on this, for the tests and the rect and size templates. This is definitely an improvement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #626
Related: dotnet/winforms#7468