行一恒  

2013年11月26日

该文被密码保护。 阅读全文
posted @ 2013-11-26 10:50 行一恒 阅读(1) 评论(0) 推荐(0) 编辑
 
摘要: yield return只是起到一个枚举的作用,记录此次的返回值,跳到下一步返回值........public partial class ViewSource : Window { int[] nums = new int[4] { 1, 2, 3, 4 }; public ViewSource() { InitializeComponent(); SetText(); } public IEnumerable Reverse() { for (int i = 3; i >= 0; i--) { yield return nums[i]; } } public void SetText 阅读全文
posted @ 2013-11-26 09:49 行一恒 阅读(121) 评论(0) 推荐(0) 编辑