I encounted a strange behavior in my wcf service. This is my opreation contract implementation: public IEnumerable<Dto.ProductType> GetAllProductTypes()
I have the following: public class Foo { public int x { get; set; } } publi开发者_StackOverflowc class Bar
I\'m getting some data from my database and using linq to calculate sums and counts and group the data.
I have a subclass of List<Location> called LocationList.This is a convenient way for us to add other properties (like IsExpanded and such that we can use in the UI.Good enough.But now, we want e
I have 2 lists: ListA { \'A\', \'B\', \'C\' } //ListA is DictA.Keys ListB { \'B\', \'X\', \'Y\' } //ListB is DictB.Keys
I have found strange behavior of IEnumerable. When i create a colle开发者_JAVA技巧ction using Linq to XML and than loop the collection and change it\'s elements, the collection size reduces by 1 on ea
Occasionally, I want to return a mutable collection from a function as a sequence. Upcasting to seq<_> works, but the sequence could be downcasted and modified (not that it usually matters开发者
I\'m using the new Resharper version 6. In several places in my code it has underlined some text and warned me that there may be a Possible multiple enumeration of IEnumerable.
I have this IEnumerable : IEnumerable<MyObject> and I need to order the list of the MyObject randomly. Do I need to cast into an ArrayList?
[code] private static IOrderedEnumerable<Film> OrderBy(this IEnumerable<Film> source, Func<Film, object> order, bool desc)