
net
xiebiao360
这个作者很懒,什么都没留下…
展开
-
C#中List<T>的排序用法(Sort)
要对自定义类数组或List进行排序,譬如: List userList; ArrayList arrayList; 最重要的是:继承IComparer接口,实现int IComparer.Compare(T t1, T t2)方法。 代码如下: /**//// /// 继承IComparer接口,实现同一自定义类型 对象比较 /// /转载 2013-11-10 08:21:00 · 1617 阅读 · 1 评论 -
C#事件
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 事件练习 { /// /// 定义传入事件的参数 /// public class NetWorkEventA原创 2013-12-12 10:02:17 · 495 阅读 · 0 评论