首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

petshop4中的有关问题,请指点,多谢

2012-01-23 
petshop4中的问题,请指点,谢谢!usingSystemusingPetShop.ModelusingSystem.Collections.Genericnamespa

petshop4中的问题,请指点,谢谢!
using   System;
using   PetShop.Model;
using   System.Collections.Generic;

namespace   PetShop.IDAL{
public   interface   ICategory   {

            IList <CategoryInfo>   GetCategories();//这里不太明白

                              CategoryInfo   GetCategory(string   categoryId)
                              {
                                        if   (string.IsNullOrEmpty(categoryId))
                                        return   null;
                                        return   dal.GetCategory(categoryId);
                              }
}
}


  IList <CategoryInfo>   GetCategories()是什么意思???

[解决办法]
泛型,2005最大特色
[解决办法]
IList <CategoryInfo> GetCategories();
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
返回值类型 方法名
泛型容器,存储CategoryInfo对象
[解决办法]
泛型

热点排行