Translate

Monday, October 22, 2012

Difference between IEnumerable and IEnumerable of T

IEnumerable
IEnumerable<T>
A class should implement this, to be able to use foreach on an instance of that class.
A class should implement this, to be able to use foreach and LINQ on an instance of that class.
Belongs to the System.Collections Namespace.
Belongs to the System.Collections.Generic namespace.



Check this for an example on IEnumerable

Check this for an example on IEnumerable<T>

No comments:

Post a Comment

Comments will appear once they have been approved by the moderator