Please enable JavaScript.
Coggle requires JavaScript to display documents.
IEnumerable - Coggle Diagram
IEnumerable
ICollection
-
IList
IList interface derives from IEnumerable,ICollection
-
-
Insert(int index, T item)
-
-
ReadOnlyCollection
Thread Safe, Prevents accidental modification, Small Implementation
-
-
-
-
-
void CopyTo(T[] array, int arrayIndex);
-
yield
-
-
yield is a powerful feature in C# for working with sequences, especially in scenarios where you want to avoid loading all data into memory at once.
-
IEnumerable interface has only one method public IEnumerator GetEnumerator(), When you use a foreach loop to iterate over a collection that implements IEnumerable, the C# compiler automatically calls the GetEnumerator() method behind the scenes
IEnumerator
IEnumerator is a mechanism that allow to iterating over a collection in older code bases. After foreach loop introduced no developer uses IEnumerator in modern code
-
-
-
-