LINQ in Action roller

Does Linq from operator supports empty collection ?

Hi, I'm probably doing something wrong: This query works...unless tagsToKeep is empty ! // Filter this to remove the tagsToKeep : We'll only have the tags to remove ! var list = from c in desc.Elements( "value" ) from c2 in tagsToKeep where ( string ) c.Attribute( "value" ) != c2 select c; where : IEnumerable string > tagsToKeep Why ? Thanks ! Read More...
Published Friday, May 23, 2008 12:29 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication