LINQ and CASE Sensitivity

后端 未结 4 967
花落未央
花落未央 2021-01-22 16:57

I have this LINQ Query:

TempRecordList = new ArrayList(TempRecordList.Cast().OrderBy(s => s.Substring(9, 30)).ToArray());

It w

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-22 17:59

    You might want to just implement a custom IComparer object that will give a custom priority to special, upper-case and lower-case characters.

    http://msdn.microsoft.com/en-us/library/system.collections.icomparer.aspx

提交回复
热议问题