How to get the start indices of specific (string) elements of an IEnumerable object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get the start indices of specific (string) elements of an IEnumerable object?

If one have an IEnumerable like: var my source = "Alpha Beta RTM Beta". Split(); how to get the indices of the term 'beta'?

25th Jul 2016, 12:51 AM
Idril
Idril - avatar
1 Answer
0
With LINQ to objects one way could look like this: http://www.sololearn.com/app/csharp/playground/cT77E2Wi713k/
25th Jul 2016, 12:52 AM
Idril
Idril - avatar