public iList <T> FindAll(Predicate <T> match) { iList <T> list = new iList <T>(); list.AddRange(base.FindAll(match)); return(list); }
public new iList <T> GetRange(int start, int count) { iList <T> list = new iList <T>(); //对传入起始位置和长度进行规则校验 if (start < this.Count && (start + count) <= this.Count) { list.AddRange(base.GetRange(start, count)); } return(list); }
/// <summary> /// 比较对象 /// </summary> /// <param name="obj"></param> /// <returns></returns> public int CompareTo(object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (obj.GetType() == this.GetType()) { iList <T> l = obj as iList <T>; return(this.Count.CompareTo(l.Count)); } else { return(this.GetType().FullName.CompareTo(obj.GetType().FullName)); } }