S
Snaggy
Hi,
I' trying to write a program (to learn the language) that handles a
deck of cards. Each card has an ID, a string name, a position, an
order (for shuffling) and as many other optional properties we might
want to assign it.
To store the deck's data I'm using right now a string[ , ] array, but
this is proving difficult.
If I want to select the cards in a position I have to do a foreach,
and that's ok. But if I want to sort let's say by positon and subsort
by order, it gets difficult..
I thought I'd me nice to work on this data as I would on a database
table, doing things like select where, order by etc etc
I know it exists a LINQ thing that might serve the purpose, but the
example I found don't quite fit what I need..
any suggestions?
thanks
Luca
I' trying to write a program (to learn the language) that handles a
deck of cards. Each card has an ID, a string name, a position, an
order (for shuffling) and as many other optional properties we might
want to assign it.
To store the deck's data I'm using right now a string[ , ] array, but
this is proving difficult.
If I want to select the cards in a position I have to do a foreach,
and that's ok. But if I want to sort let's say by positon and subsort
by order, it gets difficult..
I thought I'd me nice to work on this data as I would on a database
table, doing things like select where, order by etc etc
I know it exists a LINQ thing that might serve the purpose, but the
example I found don't quite fit what I need..
any suggestions?
thanks
Luca