In C#, are Lambda Expressions objects? -


Is Lambda Expression Objects in C #? If so, what kind of object are they?

The price of lambda is present only in the source code, they do not have a type of self, which is the reason That the compiler always says that they are converted into a specific type.

This is the reason why this code does not compile:

  // Do not know what to change in type! Object x = y = & gt; Y.Length;  

But it does this:

  function & lt; String, int & gt; X = y = & gt; Y.Length;  

Lambda Prices always either a representative type or are converted to an expression tree type. Similarly, anonymous methods always change in a representative type.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -