Sorting Custom Objects with Parameter in .NET?
Posted
by Jeffrey Kern
on Stack Overflow
See other posts from Stack Overflow
or by Jeffrey Kern
Published on 2010-06-15T18:59:14Z
Indexed on
2010/06/15
19:12 UTC
Read the original article
Hit count: 183
Let's say I have a custom object of Foo
Is there anyway I can sort through a list of these objects, like
list<of foo>.sort()
and also be able to sort this list with a passable parameter. which will influence the sort?
list<of foo>.sort(pValue)
I'm guessing I'll need to define two separate sorts, but I am not sure.
© Stack Overflow or respective owner