会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
六神花露球
C# List、ArrayList集合的自定义排序x
2018-08-07 21:17 by 六神花露球,
1540
阅读,
0
推荐,
收藏
,
摘要:List集合中存在数个玩家Player 实现排序: 按防御力升序,若相同则按攻击力降序 方法有两种: 1. 类外定义Sort方法 实现接口 IComparer public class Sort : IComparer<Player>{ public int Compare(Player a, Pl
阅读全文
0 Comment
About