Top "Ienumerable" questions

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

Convert IEnumerable to DataTable

Is there a nice way to convert an IEnumerable to a DataTable? I could use reflection to get the properties …

c# datatable ienumerable
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<>

Is there any specific reason why indexing is not allowed in IEnumerable. I found a workaround for the problem I …

c# list generics ienumerable
Recreating a Dictionary from an IEnumerable<KeyValuePair<>>

I have a method that returns an IEnumerable<KeyValuePair<string, ArrayList>>, but some of the callers …

c# collections dictionary ienumerable idictionary
filtering a list using LINQ

i have a list of project objects: IEnumerable<Project> projects a Project class as a property called Tags. …

c# linq collections tags ienumerable
The order of elements in Dictionary

My question is about enumerating Dictionary elements // Dictionary definition private Dictionary<string, string> _Dictionary = new Dictionary<string, …

c# .net dictionary ienumerable
Passing a single item as IEnumerable<T>

Is there a common way to pass a single item of type T to a method which expects an IEnumerable&…

c# .net generics ienumerable
Difference between IEnumerable Count() and Length

What are the key differences between IEnumerable Count() and Length?

c# .net ienumerable
What's the difference between IQueryable and IEnumerable

I'm confused as to the difference. Being fairly new to .Net, I know I can query IEnumerables using the Linq …

linq ienumerable iqueryable .net-3.0
How to sort an IEnumerable<string>

How can I sort an IEnumerable<string> alphabetically. Is this possible? Edit: How would I write an in-place …

c# .net string sorting ienumerable
Remove items from IEnumerable<T>

I have 2 IEnumerable collections. IEnumerable<MyClass> objectsToExcept and IEnumerable<MyClass> allObjects. objectsToExcept may contain objects from …

c# linq ienumerable