hi, usually if we want use Inumerable, we will use follows.
class program
{
static void main(string[] args)
{
List<int> oyears=new List<int>();
oyears.Add(100);
oyears.Add(101);
oyears.Add(102);
}
IEnumerable<int> enum=(IEnumerable<int>) oyears;
foreach(int i in enum)
{
console.wriline(i);
}
output :
101
102.
here IEnumerable<int> , int is datatype. so What is IEnumerable<T>. here T is What or stands for?..please help me out.
...
Go to the complete details ...