Gentlemen, there are two pieces of code:
int[] nums = { 1, -2, 3, 0, -4, 5 }; and
var posNums = from n in nums where n > 0 select n; Actually, my question is this: I can not understand what type of data is obtained from the variable posNums. At first, I decided that the collection was returning, but I realized that it was not. It turns out that the enumerator is returned. However, as I understand it, the enumerator is engaged in “enumerating” a data set in a particular class that contains this data, that is, a collection or an array. Then the question arises in this connection, is this LINQ query returning a specific class or what does it return at all? When using GetType (), I get wherearrayiterator, but what does it mean, I do not understand, and Google, too. Enlighten, please. Thank.