B
B. Chernick
For no good reason I've written this little program and I've come upon an
interesting problem.
Assume that you've defined a class with multiple string and integer
properties. Now assume that you want to hold multiple instances of this
class in memory, in some sort of list/array/collection. (Use of a fixed
database would be too slow and there's no need to persist the data anyway.)
Now assume that you want to be able to sort the list on multiple different
string and/or integer properties. Does .Net have any built-in way to do
this?
(I should also mention that I've just started reviewing generics for a cert.
I'm not all that familiar with them. Want to be sure I'm not missing
something.)
interesting problem.
Assume that you've defined a class with multiple string and integer
properties. Now assume that you want to hold multiple instances of this
class in memory, in some sort of list/array/collection. (Use of a fixed
database would be too slow and there's no need to persist the data anyway.)
Now assume that you want to be able to sort the list on multiple different
string and/or integer properties. Does .Net have any built-in way to do
this?
(I should also mention that I've just started reviewing generics for a cert.
I'm not all that familiar with them. Want to be sure I'm not missing
something.)