LINQ beginner (original) (raw)

? ?

LiveJournal

I have a pair of LINQ "group" statements, each outputs a IEnumerable<IGrouping<bool,int>>. Call these results a and b. I want to create four collections of ints, The ones that correspond to "a.Key && b.Key", "a.Key && !b.Key", "!a.Key && b.Key", "!a.Key && !b.Key".

I can convert a and b to Dictionaries with the ToDictionary extension method and have code like...
var foo = from aa in aMap[true] join bb in bMap[true] on aa equals bb select aa;
...but then I need to check the dictionary keys exists, which is not a huge overhead but I can't help thinking there must be some way of "join"ing a and b directly...?

Hello. I want to share with you my open source project. The purpose of my project is to demonstrate my visual filter builder WPF control in use.…

http://jobsattmp.com/new-york/web-development/dba-sql-server-2005_2008-jobs Hey all, I am trying to hire a DBA in NYC that has a background in MS…

I was always impressed by the bing.com image search AJAX. The bit where where more images load as you scroll down the page. Is there an AJAX control…