Top "Ienumerator" questions

IEnumerator and its generic counterpart IEnumerator<T> are .NET interfaces which facilitate iteration through items in a collection.

Can anyone explain IEnumerable and IEnumerator to me?

Can anyone explain IEnumerable and IEnumerator to me? for example, when to use it over foreach? what's the difference between …

c# ienumerable ienumerator
Simple IEnumerator use (with example)

I am having trouble remembering how (but not why) to use IEnumerators in C#. I am used to Java with …

c# ienumerator
What is the difference between IEnumerator and IEnumerable?

Possible Duplicate: Can anyone explain IEnumerable and IEnumerator to me? What are the differences between IEnumerator and IEnumerable?

c# .net ienumerable ienumerator
How to get value from IEnumerable collection using its Key?

I have IEnumerable collection like following IEnumerable<Customer> items = new Customer[] { new Customer { Name = "test1", Id = 999 }, new Customer { …

c# ienumerable ienumerator
Unity - IEnumerator's yield return null

I'm currently trying to understand IEnumerator & Coroutine within the context of Unity and am not too confident on what …

c# unity3d yield coroutine ienumerator
Why do arrays in .net only implement IEnumerable and not IEnumerable<T>?

I was implementing my own ArrayList class and was left surprised when I realised that public System.Collections.Generic.IEnumerator&…

c# .net arrays ienumerable ienumerator
Return an empty IEnumerator

I have an interface that, among other things, implements a "public IEnumerator GetEnumerator()" method, so I can use the interface …

c# ienumerator
What is the best way to convert an IEnumerator to a generic IEnumerator?

I am writing a custom ConfigurationElementCollection for a custom ConfigurationHandler in C#.NET 3.5 and I am wanting to expose the …

c# enumeration ienumerator
obtain generic enumerator from an array

In C#, how does one obtain a generic enumerator from a given array? In the code below, MyArray is an …

c# arrays generics ienumerator
Convert CollectionBase to List or data type usable with Linq

I am using Aspose cells to manipulate Excel spreadsheets. One of the types in the API is a collection of …

c# .net linq ienumerable ienumerator