Skip to content

Declare parameters omitted by VB's relaxed delegate conversion - #1327

Merged
GrahamTheCoder merged 2 commits into
icsharpcode:masterfrom
GrahamTheCoder:claude/loving-galileo-wukh5e
Nov 18, 2026
Merged

GrahamTheCoder merged 2 commits into
icsharpcode:masterfrom
GrahamTheCoder:claude/loving-galileo-wukh5e

Conversation

@GrahamTheCoder

Copy link
Copy Markdown
Member

Declare parameters omitted by VB's relaxed delegate conversion - fixes #783
VB allows Sub()/Function() lambdas to target a delegate type with parameters; C# requires them all declared, so emit throwaway parameters (_, __, ...).
Local declarations initialized with a lambda now keep their declared named delegate type rather than one derived from the lambda's own signature.

…icsharpcode#783

VB allows Sub()/Function() lambdas to target a delegate type with parameters; C# requires them all declared, so emit throwaway parameters (_, __, ...).
Local declarations initialized with a lambda now keep their declared named delegate type rather than one derived from the lambda's own signature.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019FEr8GUqhTq3m3LHQq2xeX
@GrahamTheCoder
GrahamTheCoder merged commit f58f4e6 into icsharpcode:master Nov 18, 2026
3 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.

VB -> C#: Action lambda breaks

2 participants