Implementing custom IComparer<> (with example)

后端 未结 3 1183
小蘑菇
小蘑菇 2021-01-13 05:50

Ive just written the following code, which will order strings by their native string.Compare() but allow a collection of exceptions (in this case customPr

3条回答
  •  难免孤独
    2021-01-13 06:10

    I am 99.99% sure that, Nothing such exist by default in the .Net Framework.


    Your sorting is very much customized, and is not a general way of sorting, hence thing like that do not exist in the .NET Framework by default.

提交回复
热议问题