Skip to content

fix InvalidCastException when inheriting c++ struct constructors - #595

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
lishinko:main
May 11, 2025
Merged

fix InvalidCastException when inheriting c++ struct constructors#595
tannergooding merged 1 commit into
dotnet:mainfrom
lishinko:main

Conversation

@lishinko

Copy link
Copy Markdown

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
Copy Markdown
Author

@dotnet-policy-service agree

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