Created
March 3, 2013 17:57
-
-
Save gabbsmo/5077281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var categoryMystery = new XElement("CategorySearch", | |
new XElement("Mystery"), | |
new XElement("Movies", | |
from m in Movies.Elements("Movie") | |
where m.Elements("Categories").Descendants() | |
.Contains(new XElement("Category", "Mystery")) | |
select new XElement("Movie", | |
new XElement("Title", m.Element("Title").Value)))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment