1

Closed

Boolean expressions compilation

description

The code similar to following produces incorrect result:

Camlex.Query().Where(li => (bool)li["BooleanFlag1"] && (bool)li["BooleanFlag2"] == booleanFlag)

Need to explicitly compare the field with "true", which is redundant and not much of a high quality coding standard:

Camlex.Query().Where(li => (bool)li["BooleanFlag1"] == true && (bool)li["BooleanFlag2"] == booleanFlag)
Closed Nov 18, 2013 at 9:37 AM by sadomovalex
hello,
thank you for contribution. There is already similar issue: https://camlex.codeplex.com/workitem/13991. Close this as duplicate.

comments