2012年2月27日

摘要: 1、泛型Dictionary,可以随便制定key,value的类型通常我们也可以把它看成数组; Dictionary <String, String> dic = new Dictionary <string, string> (); dic.Add( "1 ", "Jerry "); dic.Add( "2 ", "Kimmy "); dic.Add( "3 ", "Tommy ");2、在.NET Framework中,Hashtable是Syst 阅读全文
posted @ 2012-02-27 22:42 恶人鱼 阅读(530) 评论(0) 推荐(0)
 
摘要: public int FindIndex(int startIndex,int count,Predicate<T> match){ //判断起始索引是否大于总长度 if(startIndex>this._size) { return -1; } if((count<0) || (startIndex > (this.size-count))) { return -1; } if(match==null) { return -1; } int num=startIndex+count; for(int i=startIndex; i<num; i++)... 阅读全文
posted @ 2012-02-27 22:11 恶人鱼 阅读(407) 评论(0) 推荐(0)