Pages

Aug 31, 2012

IEnumerable


IEnumerable<T>:

Pros
1.       The most generic item of all.
2.       Still might use deferred(execute when needed) execution.
3.       IEnumerable is best suitable for working with in-memory collection. 

Cons

1.       IEnumerable doesn’t move between items, it is forward only collection as LinkedList. You can't get at "item 4" without passing items 0-3.
2.       Read-only list, you can't add to it or remove from it.
3.       Actually the model binder is not able to bind an enumerable because it is a too generic Interface, and it is not able to choose a concrete class to create that implements the IEnumerable.

What is IEnumerable? , Pros and Cons of IEnumerable

SEO Labels for IEnumerable<T>?:

IEnumerable ,

IEnumerable<T> ,

IEnumerable<T> Pros and Cons ,

Pros and Cons ,

Pros and Cons of IEnumerable ,

Pros and Cons of IEnumerable<T> ,

Cons of IEnumerable<T> ,

Pros of IEnumerable<T> ,

Benefits of using IEnumerable<T>

No comments:

Post a Comment