LINQ Question (Contains)

  • Thread starter Ralf Rottmann \(www.24100.net\)
  • Start date
J

Jon Skeet [C# MVP]

Ralf Rottmann (www.24100.net) said:
And here is the final "correct" and clean way of doing it in LINQ (as far as
I believe):

<snip>

Looks good to me - it's the kind of thing I'd been trying to do,
although I hadn't used the cast. You might want to consider using
OrElse instead of Or if you want to match || behaviour of C#.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top