共 2 篇文章
显示摘要每页显示  条
一个类型要想支持foreach则必须实现IEnumerable,IEnumerator两个接口。Collections, Library: BCL public interface IEnumerable...{ IEnumerator GetEnumerator();Collections, Library: BCL public interface IEnumerator...{ bool MoveNext();public class cars : IEnumerator,IEnumerable.//IEnumerator and IEnumerable require ...
这段代码演示了System.Collections.Generic的各容器类的用法,包括:Dictionary,KeyValuePair,SortedDictionary,SortedList,HashSet,SortedSet,List,Queue,Stack等类的用法。Dictionary<string, int> dict = new Dictionary<string, int>();SortedDictionary<string, int> dict = new SortedDictionary<string, i...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部