Skip to content

Bump langVersion to cache/reuse the delegate for static method groups - #706

Merged
adamreeve merged 2 commits into
masterfrom
dev-20260904-delegates
Sep 6, 2026
Merged

Bump langVersion to cache/reuse the delegate for static method groups#706
adamreeve merged 2 commits into
masterfrom
dev-20260904-delegates

Conversation

@marcin-krystianc

Copy link
Copy Markdown
Contributor

Fixes: #700
More information:

Confirmed with dotMemory that it caches the delegates after bumping the lang version to 11.
It works even if the app assembly is compiled with an older lang version or an older framework (e.g.: net471)

@adamreeve
adamreeve merged commit 342eca7 into master Sep 6, 2026
66 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.

[BUG]: Unnecessary managed allocations when making native function calls

2 participants