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
Ab Laxman
NA
14
1.1k
Newbie need help understanding multi parameter lambda?
Jan 19 2018 9:45 PM
Hi,
I'm new to coding and C# in general but I do know basics of the program. I also like LINQ but recently I came across a piece of code in the internet (on a website)
var matchCount = deqn.Value.Select((c, i) => deqn.Value.Substring(i)).Count(sub => sub.StartsWith(
"\\tag"
));
where
deqn
is a xml node and the above code is to find how many times the string
\tag
appears in that node.
I can't figure out how the code works....I'm not familiar with multi parameter lambda expressions.
Can anyone explain (break it down) the code in details to me?
Reply
Answers (
5
)
explanation about source code of combobox
HELP! Block selectedindexchanged when ComboBox is full