Create a List to sort through
I couldn't find anything on this subject that translated to my current
issue so I was hoping I could get some ideas on how to solve the
following:
I basically have two lists that each hold the following information with a
lot of values:
List 1:
int row
string text
List 2:
int column
string text
What I want to do is consolidate the two lists into one - I don't really
know what object to use, though. The closest I know of is a .CSV which has
the header information "row","column" and "text". But I don't really want
to write a .CSV and then have to load it back into program to work with it
further - I want an object/array. Does something like this exist?
After that I also need it to be able to sort the values, so as to sort it
by "row" first, then by "column". So that the final product can look like
this:
row column text
0 0 test1
0 1 test2
1 0 test3
...
Your help is greatly appreciated (Yes I'm a beginner in C#).
No comments:
Post a Comment