Will Web 3.0 Replace Web 2.0?
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
osyris zosar
1.9k
289
15.9k
if statement in LINQ?
Jan 6 2021 12:52 AM
i have a couple of list but sometimes they are empty
var matching = from name
in
indexnames
from surname
in
indexsurname
from age
in
agesurname
from height
in
indexheight
where name.Equals(surname) &&
name.Equals(age) && name.Equals(height)
orderby name
select name;
How can i make sure it only does name.Equals(value) if it actualy contains anything ?
Reply
Answers (
1
)
Remove the item from ComboBox once it's been selected in the previous
Get name of list from listcollection with lowest amount of items