Top "Ienumerable" questions

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

Correct, idiomatic way to use custom editor templates with IEnumerable models in ASP.NET MVC

This question is a follow-up for Why is my DisplayFor not looping through my IEnumerable<DateTime>? A quick …

c# asp.net-mvc ienumerable view-templates razor-3
Is there a Linq method to add a single item to an IEnumerable<T>?

Basically I am trying to do something like this: image.Layers which returns an IEnumerable for all layers except the …

c# .net ienumerable
List.AddRange with IEnumerable<T> parameter not working?

I have the following scenario where I want to add some items to a List... List<T> items = …

c# list ienumerable deferred addrange
IEnumerable and order

I have got a question about the order in IEnumerable. As far as I am aware, iterating through IEnumerable is …

c# .net collections ienumerable
Resharper: Possible Multiple Enumeration of IEnumerable

I'm using the new Resharper version 6. In several places in my code it has underlined some text and warned me …

c# linq resharper ienumerable optimization
Passing an anonymous object as an argument in C#

I have a problem with passing an anonymous object as an argument in a method. I want to pass the …

c# object dynamic ienumerable anonymous
Deserialize to IEnumerable class using Newtonsoft Json.Net

I have a project that is currently using Json.Net for Json deserialization classes like these: public class Foo { public …

c# .net xamarin.ios json.net ienumerable
JavaScript/jQuery equivalent of LINQ Any()

Is there an equivalent of IEnumerable.Any(Predicate<T>) in JavaScript or jQuery? I am validating a list …

javascript jquery foreach ienumerable any
Why Enumerable.Cast raises an InvalidCastException?

If I can implicitly cast an integer value to a double, like: int a = 4; double b = a; // now b holds 4.0 …

c# casting ienumerable
IEnumerable<T>.Contains with predicate

I need just to clarify that given collection contains an element. I can do that via collection.Count(foo => …

c# linq ienumerable contains predicate