What is the type of lambda expression with the body?

Windows Form Extension Method. Invoke () does not accept a lambda expression, and we do not need to resort to a delegate type first, for example Action. This makes me wonder if the lambda expression (with the body) is clearly not a delegate or expression, what is its type?

+4
source share
2 answers

This makes me wonder if the lambda expression (with the body) is clearly not a delegate or expression, what is its type?

It has no type in the normal sense of the word (i.e., CLR type), just as nullit has no type. (In older versions of the C # specification, a "null type" was specified, but it was removed.)

, .

. 7.1 # 5 ( " " ) - ( ):

  • . .
  • . .
+6

Delegate abstract (MulticastDelegate ). Lambda Delegate, , .

, , .

?

, Expression<TDelegate>, , .

+1

All Articles