2
Answers

how to use IEnumerable az an interface?

elham deljooei

elham deljooei

11y
1.1k
1
Hi everyone
I'm confused about IEnumerable. i don't know which it what's mean? and when can i use it as an interface?
I've faced with IEnumerable like this:

var sorted=
from value in values
orderby value
select value;

Diplay(sorted, "sorted:");

Public Static Void Display(IEnumerable <int> result, string header)
{
cosol.writeline ("{0}", header);
Foreach (var element in result)
cosole.write("{0}", element)
}
Answers (2)