那些年我还不懂:IList,ICollection,IEnumerable,IEnumerator,IQueryable
1、首先看一个简单的例子
int[] myArray = { 1, 32, 43, 343 }; IEnumerator myie = myArray.GetEnumerator(); myie.Reset(); while (myie.MoveNext()) { int i = (int)myie.Current; Console.WriteLine("Value: {0}"