摘要: 看了官方的、网上其他的,写了2个demo,只不过还是没发现哪里会用到。IEnumerable和IEnumerator都是System.Collections下的接口,结构分别如下:namespace System.Collections{ public interface IEnumerabl... 阅读全文
posted @ 2014-05-13 17:38 哲夫 阅读(125) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { //输出:2 4 8 16 32 64 128 256 foreach (int i in Power(2, 8)) { ... 阅读全文
posted @ 2014-05-13 11:02 哲夫 阅读(120) 评论(0) 推荐(0) 编辑