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
-
IEnumerable<T>
-
Pros and Cons of IEnumerable<T>
-
What is IEnumerable<T>?
-
How IEnumerable<T>? works?
-
How to use IEnumerable<T>?
-
Benefits of IEnumerable<T>?
-
Benefit use of IEnumerable<T>?
-
Pros of IEnumerable<T>?
-
Cons of IEnumerable<T>?
-
Best use of IEnumerable<T>?
No comments:
Post a Comment