I have a lambda expression that currently looks like this:
item => Reports.Add(item)
I want to modify it such that it is conditional, and basically checks that Reports.Contains(item) returns false, then performs the Reports.Add(item) action. Is this possible to do using lambda all on one line?
Chris
That should do, but it depends on how you define ‘one line’, really.