TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Smith
NA
2k
0
Ling
Oct 23 2010 2:10 AM
can some one tell what im doing wrong in my linq, basicall in the operation test for a neither one of the values have a fail and its jumping in the case, im look for any tests that has value of fail
and it has a value of fail jump into the case, for some some reason its jumping into the case when all tests has a value of pass, i think its the count > 0 is probably why, what to use instead of the .count
if (Operation.Tests.Select(t => ((t.StatusByTest != null) && (t.StatusByTest.Equals("FAIL")))).Count() > 0)
{
Operation.StatusByOp = "FAIL";
}
Reply
Answers (
3
)
Wcf Best book for beginners
How to store value into sessionafter refresh the page?