For 2 value set data, it is clear I can use Dictionary. Forexample: if I have “Name” and “position” as key value pair I can use Dictionary.
What about 3 value set? What is the proper dataset I should use? I have Name, level, position. and the only thing unique is the position.
ie
Item1, port0, line20;
Item1, port1, line21;
Item2, port0, line22;
Item2, port1, line23;
Why not just create a appropriate class? It’s simple, it’s short, it’s meaningful.
And then put it into a
List<FooBar>orDictionary<string, FooBar>(where the key is thePosition).Creating a
ListorDictionaryallows you to fetch items easily by its properties