Show/Hide Toolbars

XSharp

An expression tree lambda may not contain a coalescing operator with a null literal left-hand side.

 

Because null by itself does not have a type, the null coalescing operator cannot operate on it.

To correct this error

 

1.Cast the null literal to an object.

Example

 

The following code generates XS0845:

 

 

// XS0845.prg