|
|
1
23
你可以使用
|
|
|
2
11
让MyClass实现 IComparable 接口,然后使用 Array.Sort 类似这样的内容适用于CompareTo(假定name属性具有类型字符串)
或者简单地使用LINQ
|