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
Post a Comment