Top "Ienumerable" questions

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

Why does the IEnumerable<T>.Select() works in 1 of 2 cases ? Can not be inferred from usage

I get this error message: The type arguments for method 'System.Linq.Enumerable.Select<TSource,TResult>(System.Collections.…

c# select ienumerable inferred-type
IEnumerable<T> as return type

Is there a problem with using IEnumerable<T> as a return type? FxCop complains about returning List<…

c# collections ienumerable enumeration
C#: To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object)

I have the following code: private static string FindAppointmentsAsXmlString(CalendarView calendar, ExchangeService serv) { FindItemsResults<Appointment> appointments = serv.FindAppointments(…

c# serialization ienumerable add exchangewebservices
Flatten IEnumerable<IEnumerable<>>; understanding generics

I wrote this extension method (which compiles): public static IEnumerable<J> Flatten<T, J>(this IEnumerable&…

c# generics ienumerable nested-generics
generic NOT constraint where T : !IEnumerable

As per the title, is it possible to declare type-negating constraints in c# 4 ?

c# .net generics ienumerable
yield return works only for IEnumerable<T>?

Can I use yield return when the return type is an IGrouping<TKey, TElement> or an IDictionary<…

c# .net ienumerable
An extension method on IEnumerable needed for shuffling

I need an extension method which will shuffle an IEnumerable<T>. It can also take an int to …

c# ienumerable shuffle
Difference between IEnumerable and IEnumerable<T>?

What is the difference between IEnumerable and IEnumerable<T>? I've seen many framework classes implementing both these interfaces, …

c# ienumerable generics ilist icollection
Can I implement yield return for IEnumerable functions in VB.NET?

Possible Duplicate: Yield In VB.NET In C#, when writing a function that returns an IEnumerble<>, you can …

vb.net ienumerable iterator yield-return
Pair-wise iteration in C# or sliding window enumerator

If I have an IEnumerable like: string[] items = new string[] { "a", "b", "c", "d" }; I would like to loop thru …

c# .net iterator ienumerable