早教吧 育儿知识 作业答案 考试题库 百科 知识分享

asp.net3.5中有set,map集合吗?asp.net3.5中有list集合但我写:Sets=newSet();Mapm=newMap();没反应写Listl=newList();(在不导入usingSystem.Collections.Generic;的情况下)有提示导入;难道asp.net3.5没

题目详情
asp.net3.5 中有set, map 集合吗?asp.net 3.5 中有list集合但我写: Set s=new Set(); Map m=new Map();没反应 写 List l=new List();(在不导入using System.Collections.Generic;的情况下) 有提示导入; 难道asp.net 3.5没有Set、Map集合吗? 如何有请问该如何创建?
▼优质解答
答案和解析
你好,asp.net里没有这两个集合,不能直接创建,除非自己编写。。这是java里面的,.net里没有,如果你要用.net里的更多集合,可以参考.net类库文档。。