Here's an encapsulated method:
public class LString
{
List<string>[] _strListArray;
public LString(int size)
{
_strListArray = new List<string>[size];
}
public void Add(int index, string str)
{
_strListArray[index].Add(str);
}
public void Remove(int index, string str)
{
_strListArray[index].Remove(str);
}
// insert more code for list manipulation
}
This may not be the cleanest code, but it does not inherit from List<T>
.