Skip to content

Why is lambda without closures turned into an instance method rather than a static one? #70761

Answered by CyrusNajmabadi
voroninp asked this question in Q&A
Discussion options

You must be logged in to vote

Instance method invocation in a delegate is faster. It's a detail of the runtime that we exploit for performance.

Replies: 1 comment 3 replies

Comment options

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

@KennethHoff
Comment options

@voroninp
Comment options

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