Thanks for the quick reply. just to make sure I’ve explained myself right here’s a drawing:
I basically want to be able to switch the red index to whatever string I want and do the other things i wrote in the first post.
Is that how you understood my question too?
hey guys.
Maybe I’m thinking the wrong way about this but how would List work IF:
I want to let’s say add a “q” to index x1 y6 z3 OR read what value x4 y7 z0 holds at the moment in the list?
public class IndexedString
{
public int X { get; private set; }
public int Y { get; private set; }
public int Z { get; private set; }
public string Value { get; set; }
public IndexedString(int x, int y, int z, string value)
{
this.X = x;
this.Y = y;
this.Z = z;
this.Value = value;
}
}
var indexedStrings = new List<IndexString>();
Lookups are a bit trickier. Nested Dictionaries are the most straightforward approach.