how was Array.Sort implemented in .NET?

后端 未结 6 469
遇见更好的自我
遇见更好的自我 2021-01-13 21:28

I am using structures in my programming and I sort the structure according to a value in the structure using IComparer.

How did Microsoft implement th

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 22:15

    Use .Net Reflector and see for yourself... From the method names it looks like they are using the QuickSort algorithm: System.Array+SorterObjectArray.QuickSort

提交回复
热议问题