Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Newbie need help understanding multi parameter lambda?
Ab Laxman
Jan 19 2018 9:45 PM
210
Reply
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?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
explanation about source code of combobox
HELP! Block selectedindexchanged when ComboBox is full