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
27k
Getting index of all items containing a value using Linq
Dec 27 2020 2:00 AM
I am just starting to learn Linq.
and i have this list
string
[] names = {
"jack"
,
"harry"
,
"James"
,
"peter"
};
List <
string
> list32 =
new
List<
string
>(names);
I would like to get all the index numbers of the items that contain a specific char
i have tried this
var mylinqQuery = from f
in
list32
where f.Contains(
'a'
)
select f;
but it only returns the full names
Can somebody help me with this
Reply
Answers (
4
)
Web api version in accept header
problem in loading ul and li in javascript dynamically from DB..