-
I can't figure out how to inject a custom attribute onto a type or member. In my case, I want to apply |
Beta Was this translation helpful? Give feedback.
Answered by
tritao
Dec 12, 2023
Replies: 1 comment 3 replies
-
I don't think this is supported out of the box atm, but should be a simple patch to add, PRs appreciated 👍 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might be in luck, looks like we have some kind of support for writing attributes per declaration:
Check these and let me know if it helps:
https://github.com/mono/CppSharp/blob/main/src/AST/Declaration.cs#L312
https://github.com/mono/CppSharp/blob/main/src/Generator/Generators/CSharp/CSharpSources.cs#L359