Skip to content

fix InvalidCastException when inheriting c++ struct constructors #595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2025

Conversation

lishinko
Copy link

while generating binding file from Viewport.h from Google Filament Project, an InvalidCastException occured and the generation process exited.
The reason is : C# dosn't support constuctor inheriting, so we cannot generate correct code for it.
This PR just bypasses the exception and let the generation continue. The generated file is wrong, but it is caused by the struct inerhitance, not by this exception any more.

@lishinko
Copy link
Author

@dotnet-policy-service agree

@tannergooding tannergooding merged commit e00d1c2 into dotnet:main May 11, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants