I'm trying to use a List containing string arrays, but when I attempt to access the array elements using square brackets, I receive an error.
My List of arrays is declared like this:
public List<Array> alphabet = new List<Array>();
I also have a string array declared like this:
string[] encrypted = new string[text.Length];
I am able to access one array, but not the other
string a = alphabet[1][2]; // this gives me an error
string b = encrypted[1]; // this works fine
.ElementAt(...?alphabetdeclared?encrypted,alphabet,textandalphabetc. Since the indexing does not fit together with the declaration, we need to know the declarations.