I'm working on a project where I need to find the index of an item in my C# List and and the following 3 indexes.
For example:
I want to find the index of 'Mary' in my name List:
Joseph Mary John Peter Andrew
After I find the index of Mary I want to add the following 3 indexes (John, Peter, Andrew) and store them in an array.