Sign in | Join
Last post 07-01-2009 8:50 PM by SGWellens. 1 replies.
Sort Posts: Oldest to newest Newest to oldest
hi
how to convert a List<int> to IEnumerable<int>
i got a list of ints i want to convert them into IEnumerable<int> in order to pass it to a method
thanks
It already is an IEnumberable:
List<int> MyList = new List<int>();
if (MyList is IEnumerable<int>) Response.Write("MyList is an IEnumerable list of ints ");