Well, I need a public (property) for Data[x, y], of strings
That doesn't really answer the question.
Note that you can have an indexer with two parameters. For example:
class Class1
{
private string[,] _data;
public string this[int x, int y]
{
get { return _data[x, y]; }
}
}
You could also just expose the underlying data structure directly from a
property, whatever it happens to be. For example:
class Class1
{
private string[,] _data;
public string[,] Data
{
get { return _data; }
}
}
But the question still remains what the backing data structure would be,
which depends on what you're storing and why.
Pete