elham deljooei

elham deljooei

  • NA
  • 84
  • 71.9k

how to use IEnumerable az an interface?

Apr 8 2013 6:19 AM
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)