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...