Show/Hide Toolbars

XSharp

A lambda expression must have an expression body to be converted to an expression tree.

 

Lambdas that are translated to expression trees must be expression lambdas; statement lambdas and anonymous methods can only be converted to delegate types.

 

To correct this error

 

1.Remove the statement from the lambda expression.

Example

 

The following example generates XS0834:

 

 

// XS0834.prg