摘要:        
自定义索引器,一般用于自定义集合类中并用来取得集合实例中的某一个元素。而且C#.NET 有泛型集合可以使用。写这本文章主要是回顾一些容易遗忘的东西。namespaceAspxDemo_Lib{publicclassProductCollection:CollectionBase{publicProductthis[intindex]{set{base.InnerList[index]=value;}get{return(Product)base.InnerList[index];}}publicvoidAdd(Productproduct){base.InnerList.Add(product    阅读全文
        
            posted @ 2011-05-18 15:52
yoolo wu
阅读(485)
评论(0)
推荐(0)
        
        
 
                    
                     
                    
                 
                    
                 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号