0

I have class called Order in C# .Net 4.0. I want to create a custom collection class that inherits from the List class. I then want to know how to override the sort method on the List class to implement my own sort method.

Thanks!

gpmurthy
  • 2,397
  • 19
  • 21
mHelpMe
  • 6,336
  • 24
  • 75
  • 150

1 Answers1

0

You don't have to, as List<T>.Sort() has a few overloads that let you specify the way to compare objects, altering the sort results.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272