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
osyris zosar
NA
289
27.5k
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