Sorting Custom Objects with Parameter in VB.Net/C#

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:02 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

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.

Thanks!

© Stack Overflow or respective owner

Related posts about .NET

Related posts about list