Skip to content
Discussion options

You must be logged in to vote

You can use RuntimeFeature.IsDynamicCodeSupported as a feature guard. Preprocessors won't work here because AOT uses the same C# compilation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@WeihanLi
Comment options

@am11
Comment options

am11 Oct 18, 2024
Collaborator

@vitek-karas
Comment options

Answer selected by WeihanLi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants