I had this code:
String[] lineElements; . . . try { using (StreamReader sr = new StreamReader(\"TestFile.txt\")) {
Either use:
List list = new List(array);
or from LINQ:
List list = array.ToList();
Or change your code to not rely on the specific implementation:
IList list = array; // string[] implements IList