15 lines
242 B
C#
15 lines
242 B
C#
|
// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
|
||
|
// Line: 12
|
||
|
|
||
|
using System.Linq.Expressions;
|
||
|
|
||
|
class C
|
||
|
{
|
||
|
delegate bool D ();
|
||
|
|
||
|
public void Foo ()
|
||
|
{
|
||
|
Expression<D> e = () => { return true; };
|
||
|
}
|
||
|
}
|