November 4th, 2007, 06:26 PM
Multidimensional SortedList (C#)
I am trying to create a 2-Dimensional SortedList in C#. I need to be able to look up a value using two keys, much like x,y coordinates.
See the table below. I need to be able to input two keys (A,C) and have the value '3' returned. The keys are an enumeration I have and the values will be integers. The standard C# SortedList only supports one key to one value. How can I best do this in C#?
public enum letters
A B C
A 1 2 3
B 2 3 1
C 3 1 2
Last edited by AxessTerminated; November 4th, 2007 at 09:53 PM.
Geek isn't just a four-letter word; it's a six-figure income.
By shred2er in forum Programming Security
Last Post: September 29th, 2003, 03:25 AM