Skip to content

Add GeneratePostNativeCallText option for C# - #1973

Merged
tritao merged 3 commits into
mono:mainfrom
tobias-kremb:post-call-text-hook
Nov 10, 2026
Merged

tritao merged 3 commits into
mono:mainfrom
tobias-kremb:post-call-text-hook

Conversation

@tobias-kremb

Copy link
Copy Markdown

Implements #1966: Option to emit code after every native call in C# bindings

  • Adds DriverOptions.GeneratePostNativeCallText(Func<Function, string>)
  • Emitted code runs after the native call and after the return value is marshaled.
  • Emitted code is wrapped in try-finally when parameters require cleanup
  • C# backend only.

@tobias-kremb

Copy link
Copy Markdown
Author

@dotnet-policy-service agree company="Frenco GmbH"

@tritao
tritao merged commit a6210ef into mono:main Nov 10, 2026
10 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