I have a collection of notes. Depending on the user interface requesting these notes, I would like to exclude some categories. This is just an example. If the Notes Notes Notes popup notes notes, I have to exclude the collection notes .
Func<Note, bool> excludeCollectionCategory = (ui == UIRequestor.ProjectNotes)
? x => x.NoteCategory != "Collections"
: x => true;
I get the following error: Type of conditional expression cannot be determined because there is no implicit conversion between 'lambda expression' and 'lambda expression'
thanks for the help
source
share