C# Array Difrent indexes : Hi i want to search for Charracter in string array but i need to search Betwwen 2 indexes for example between index 2 to 10 how can i do that?

    foreach (var item in currentline[2 to 10])
                            {
                                if (item == ',' || item == ';')
                                {
                                    c++;
                                    break;
                                }
                                else
                                {
                                    data += item;
                                    c++;
                                }
                            } 