LINQ in Action roller

How to return XElement only from var query?

I have a function which returns an IOrderedEnumerable... I then do a query against it to specify a single record. However, the query naturally returns an IEnumerable when I only need the XElement. Is there any way to get the query to only return a single XElement? If not, is there a way to get the single XElement without using a foreach loop? Read More...
Published Tuesday, July 31, 2007 2:07 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication