Sorting a List of objects in C#

后端 未结 11 1915
终归单人心
终归单人心 2020-12-07 18:01
public class CarSpecs
{
  public String CarName { get; set; }

  public String CarMaker { get; set; }

  public DateTime CreationDate { get; set; }
}
11条回答
  •  被撕碎了的回忆
    2020-12-07 18:27

    If you're after an efficient way of sorting, I'd advise against using bubble sort and go for a quick sort instead. This page provides a rather good explanation of the algorithm:

    http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=574

    Best of luck!

提交回复
热议问题