C#C
C#12mo ago
Faker

LINQ in C#

Hello guys, sorry to disturb you all; I'm currently learning about arrays. I noticed that we can query the array to return a new one using the following syntax:

evenNumbers = numbers.Where(n => n % 2 == 0).ToArray();

I have one question. I understood that the ToArray() method is used to convert the filtering result into an array. But what if we omit it? What would happen? What would evenNumber store? Would we be able to access the filtered values?
Was this page helpful?