LINQ statement as if condition
Posted
by dotnetdev
on Stack Overflow
See other posts from Stack Overflow
or by dotnetdev
Published on 2010-03-21T23:01:55Z
Indexed on
2010/03/21
23:11 UTC
Read the original article
Hit count: 279
c#
I saw a piece of code which was written like this:
if (from n in numbers select n where n = 5)
However, I tried writing something like this but came across errors (bare in mind the code sample may not be exactly as above as I am typing from memory). How can I write code like the above?
Thanks
© Stack Overflow or respective owner