我正在尝试对通用列表进行排序,并且出现了InvalidOperationException
错误
有没有人建议如何纠正它?List<XYZ<String, String>>
列表作为参数通过函数传递。
func( List<XYZ<String, String>> PassedList) {
PassedList.Sort();
}
任何建议都会很有帮助。
最佳答案
您的XYZ应该为IComparable
关于c# - 排序列表<xyz <String,String >>,错误: InvalidOperationException的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14881109/