I have an xml file and want to remove any row from it. For this reason, I assign each row of the xml file to a list:
List<string[]> lines = new List<string[]>();
List<string> clmns = new List<string>();//each row is written to clmns
...
lines.Add(clmns.ToArray());
As you may expect, lines list will be like
{ "1", "2", ... },
{ "4", "5", ... },
...
Assume that I want to delete the row (the array in lines) holding "5". How can I make it?
I thought I can delete the array by using lines.RemoveAt(1). But, I couldn't find a way to find the index of array holding the search string.