Top "Ienumerable" questions

IEnumerable, and its generic counterpart IEnumerable<T> are .NET interfaces for iterating (or enumerating) through a collection of items.

How to iterate through two IEnumerables simultaneously?

I have two enumerables: IEnumerable<A> list1 and IEnumerable<B> list2. I would like to iterate …

c# iteration ienumerable
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
How to group items by index? C# LINQ

Suppose I have var input = new int[] { 0, 1, 2, 3, 4, 5 }; How do I get them grouped into pairs? var output = new int[][] { new …

c# .net linq ienumerable grouping
Why doesn't the Controls collection provide all of the IEnumerable methods?

I'm not for sure how the ControlCollection of ASP.Net works, so maybe someone can shed some light on this …

c# asp.net linq extension-methods ienumerable
IEnumerable model property in an ASP.NET MVC 3 Editor Template

I have a model which has an IEnumerable property (warning pseudo-code to follow) public class PersonModel { public string Name { get; …

asp.net-mvc-3 ienumerable editortemplates mvc-editor-templates
why ForEach Linq Extension on List rather than on IEnumerable

Possible Duplicate: Why is there not a ForEach extension method on the IEnumerable interface? Hello, My question is why Foreach …

c# .net linq ienumerable linq-to-objects
Modelbinding IEnumerable in ASP.NET MVC POST?

Is there any issues with modelbinding IEnumerable types to an MVC POST? Some properties in my Model are not being …

c# asp.net-mvc ienumerable model-binding
C++/CLI IEnumerable and IEnumerator implementation

Does anyone have a working, step-by-step example of how to implement IEnumerable and IEnumerator in C++/CLI? Alternatively, does someone …

c++-cli ienumerable ienumerator
Linq and DBNull - Getting error

I'm getting an error when selecting from a rows.AsEnumerable(). I am using the following code... var rows = ds.Tables[0].…

c# linq null ienumerable dbnull
Performance of Skip (and similar functions, like Take)

I just had a look at the source code of the Skip/Take extension methods of the .NET Framework (on …

c# performance linq ienumerable skip-take