I'm looking to nest dictionaries inside of one another in order to house x y coordinates of blocks. So I would have
IDictionary<IDictionary<int, int>, IDictionary<int, int>>
and the key Dictionary would house the column, row combination while the value Dictionary would house the x and y coordinates. It will be used to draw a 2D wireframe after users input values for the blocks on the plane.
I have a couple of questions: 1) What possible pitfalls might I run into? 2) Is there a better approach for this challenge?
Thank you
Update Not sure how to mark the answer since two different suggestions led to the used solution. I ended up with:
IDictionary<KeyValuePair<int, int>, Point>
and each block sets the x, y coordinates for the next block to its right and next block below.
This is a combination of answers by Mehrdad Afshari, Reed Copsey and CSharpAtl for the KeyValuePair and Cory Charlton for the Point.
If there is a way to mark more than one answer please let me know, but otherwise I'm just marking the first answer in the list as the answer.