Top "Ienumerable" questions

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

.NET Entity Framework - IEnumerable VS. IQueryable

Please see this line of code. This is an invocation of a stored procedure, which returns an ObjectResult<long?&…

entity-framework frameworks entity ienumerable iqueryable
Custom Collection using IEnumerable vs ICollection vs IList

I need to design my own custom GenericCollection class. Now i have plenty of options to derive it using IEnumerable, …

c# ienumerable ilist icollection custom-collection
Params IEnumerable<T> c#

Why cant I use an IEnumerable with params? Will this ever be fixed? I really wish they would rewrite the …

c# generics ienumerable params
Get value from C# lookup

I'm interested in how to get value from C# lookup structure. Example: var myLookup = (Lookup<string, int>)data.…

c#-4.0 ienumerable lookup
Is there a standard C++ equivalent of IEnumerable<T> in C#?

Or is it safe to use vector if the Enumerator of T is just listing all the elements?

c# c++ ienumerable
Optimal LINQ query to get a random sub collection - Shuffle

Please suggest an easiest way to get a random shuffled collection of count 'n' from a collection having 'N' items. …

c# linq ienumerable observablecollection
Resolving IEnumerable<T> with Unity

Can Unity automatically resolve IEnumerable<T>? Let's say I have a class with this constructor: public CoalescingParserSelector(IEnumerable&…

c# dependency-injection unity-container ienumerable
Bind Checkboxes to int array/enumerable in MVC

@Html.CheckBox("orderNumbers", new { value = 1 }) @Html.CheckBox("orderNumbers", new { value = 2 }) @Html.CheckBox("orderNumbers", new { value = 3 }) @Html.CheckBox("orderNumbers", new { value = 4 }) @…

asp.net-mvc-3 int ienumerable checkbox model-binding
Convert IAsyncEnumerable to List

So in C#8 we got the addition of the IAsyncEnumerable interface. If we have a normal IEnumerable we can make …

c# linq ienumerable c#-8.0 iasyncenumerable
Do I need to consider disposing of any IEnumerable<T> I use?

It's recently been pointed out to me that various Linq extension methods (such as Where, Select, etc) return an IEnumerable&…

c# linq ienumerable dispose