¡@

Home 

c# Programming Glossary: ienumerable

How is Generic Covariance & Contra-variance Implemented in C# 4.0?

http://stackoverflow.com/questions/245607/how-is-generic-covariance-contra-variance-implemented-in-c-sharp-4-0

or out for covariance . The most obvious example is IEnumerable T which only ever lets you take values out of it it doesn't.. of it it doesn't let you add new ones. That will become IEnumerable out T . That doesn't hurt type safety at all but lets you return.. doesn't hurt type safety at all but lets you return an IEnumerable string from a method declared to return IEnumerable object for..

Returning IEnumerable<T> vs IQueryable<T>

http://stackoverflow.com/questions/2876616/returning-ienumerablet-vs-iqueryablet

IEnumerable T vs IQueryable T what is the difference between returning.. custs from c in db.Customers where c.City City select c IEnumerable Customer custs from c in db.Customers where c.City City select.. will be executed in the database if possible. For the IEnumerable T case it will be LINQ to object meaning that all objects matching..

Deserialize JSON into C# dynamic object?

http://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object

throw new NotImplementedException public override IEnumerable Type SupportedTypes get return new ReadOnlyCollection Type..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

LINQ OrderBy on IEnumerable T I found an example in the VS2008 Examples for Dynamic LINQ.. T . Is there any way to get this functionality on IEnumerable T c# linq linq to objects share improve this question Just.. including nested properties. To get it working with IEnumerable T you could add some wrapper methods that go via AsQueryable..

Split List into Sublists with LINQ

http://stackoverflow.com/questions/419019/split-list-into-sublists-with-linq

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

shows that in order to satisfy implementation of IEnumerable Dictionary uses the Enumerator struct which it copies every..

Creating a blocking Queue<T> in .NET?

http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net

using internal class BlockingCollection T CollectionBase IEnumerable todo might be worth changing this into a proper QUEUE private..

Convert generic List/Enumerable to DataTable?

http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable

Here's a nice 2013 update using FastMember from NuGet IEnumerable SomeType data ... DataTable table new DataTable using var reader.. members or enforce the order then you can do that too IEnumerable SomeType data ... DataTable table new DataTable using var reader..

Find all controls in WPF Window by type

http://stackoverflow.com/questions/974598/find-all-controls-in-wpf-window-by-type

this question This should do the trick public static IEnumerable T FindVisualChildren T DependencyObject depObj where T DependencyObject..

C# Performance of nested yield in a tree

http://stackoverflow.com/questions/1043050/c-sharp-performance-of-nested-yield-in-a-tree

to Lists or ReadOnlyCollections instead c# performance ienumerable implementation yield share improve this question It's certainly..

Should I always return IEnumerable<T> instead of IList<T>?

http://stackoverflow.com/questions/1072614/should-i-always-return-ienumerablet-instead-of-ilistt

of what it does but perhaps this isn't correct to do. c# ienumerable share improve this question It really depends on why you..

How can I add an item to a IEnumerable<T> collection?

http://stackoverflow.com/questions/1210295/how-can-i-add-an-item-to-a-ienumerablet-collection

have a method like items.Add item like the List T c# list ienumerable share improve this question You cannot because IEnumerable..

Convert IEnumerable to DataTable

http://stackoverflow.com/questions/1253725/convert-ienumerable-to-datatable

null table.Rows.Add values return table c# datatable ienumerable share improve this question Look at this one Convert List..

Passing a single item as IEnumerable<T>

http://stackoverflow.com/questions/1577822/passing-a-single-item-as-ienumerablet

Yield T this T item yield return item c# .net generics ienumerable share improve this question Your helper method is the cleanest..

Optimal LINQ query to get a random sub collection - Shuffle

http://stackoverflow.com/questions/1651619/optimal-linq-query-to-get-a-random-sub-collection-shuffle

'n' from a collection having 'N' items. where n N c# linq ienumerable observablecollection share improve this question Another..

Enumerating Collections that are not inherently IEnumerable?

http://stackoverflow.com/questions/1815497/enumerating-collections-that-are-not-inherently-ienumerable

A humbling experience I might add c# linq treeview ienumerable controlcollection share improve this question This code..

IEnumerable and Recursion using yield return

http://stackoverflow.com/questions/2055927/ienumerable-and-recursion-using-yield-return

yield return whilst also using recursion c# generics ienumerable yield share improve this question Inside a method that returns..

Why does IEnumerable<T> inherit from IEnumerable?

http://stackoverflow.com/questions/221691/why-does-ienumerablet-inherit-from-ienumerable

why IEnumerable T is designed in other way. c# generics ienumerable share improve this question Straight from the horse's mouth..

Recreating a Dictionary from an IEnumerable<KeyValuePair<>>

http://stackoverflow.com/questions/2636603/recreating-a-dictionary-from-an-ienumerablekeyvaluepair

actual.ContainsKey something c# collections dictionary ienumerable idictionary share improve this question If you're using..

Returning IEnumerable<T> vs IQueryable<T>

http://stackoverflow.com/questions/2876616/returning-ienumerablet-vs-iqueryablet

T what is the difference between returning iqueryable vs ienumerable. IQueryable Customer custs from c in db.Customers where c.City.. one be preferred over the other c# linq linq to sql ienumerable iqueryable share improve this question Yes both will give..

IEnumerable vs List - What to Use? How do they work?

http://stackoverflow.com/questions/3628425/ienumerable-vs-list-what-to-use-how-do-they-work

links that explain this use of IEnumerable. c# linq list ienumerable share improve this question IEnumerable describes behavior..

What's your favorite LINQ to Objects operator which is not built-in?

http://stackoverflow.com/questions/3645644/whats-your-favorite-linq-to-objects-operator-which-is-not-built-in

existing methods are preferred. c# linq extension methods ienumerable linq to objects share improve this question Append Prepend..

The order of elements in Dictionary

http://stackoverflow.com/questions/4007782/the-order-of-elements-in-dictionary

I force the order to be alphabetical c# .net dictionary ienumerable share improve this question The order of elements in a dictionary..

ReadOnlyCollection or IEnumerable for exposing member collections?

http://stackoverflow.com/questions/491375/readonlycollection-or-ienumerable-for-exposing-member-collections

or am I missing something Thanks Erik c# .net collections ienumerable readonlycollection share improve this question EDIT Is there..

Can anyone explain IEnumerable and IEnumerator to me?

http://stackoverflow.com/questions/558304/can-anyone-explain-ienumerable-and-ienumerator-to-me

IEnumerable and IEnumerator Why do we need to use it c# ienumerable ienumerator share improve this question for example when..

Pair-wise iteration in C# or sliding window enumerator

http://stackoverflow.com/questions/577590/pair-wise-iteration-in-c-sharp-or-sliding-window-enumerator

I will also appreciate C# 3.0 solutions. c# .net iterator ienumerable share improve this question In .NET 4 this becomes even..

An extension method on IEnumerable needed for shuffling

http://stackoverflow.com/questions/5807128/an-extension-method-on-ienumerable-needed-for-shuffling

T this IList T list return list.Shuffle list.Count c# ienumerable shuffle share improve this question You can use a Fisher..

ICollection<T> Vs List<T> in Entity Framework

http://stackoverflow.com/questions/7655845/icollectiont-vs-listt-in-entity-framework

I have done or should I change it c# list ef code first ienumerable icollection share improve this question Entity Framework..