public ExpressionOptions(Func<Type, bool> validForQueryType, bool castAssignment = false, bool nullCheckLists = false, bool typeCheckInheritance = false) { ValidForQueryType = validForQueryType; CastAssignment = castAssignment; NullCheckLists = nullCheckLists; TypeCheckInheritance = typeCheckInheritance; }