Reputation: 11302
var serviceLine = from ServiceLine in DataXML.Descendants("Serviceline")
select new
{
ServiceLineName = ServiceLine.Attribute("Name").Value,
EntityName = ServiceLine.Attribute("Entity").Value,
SiteLevelName = ServiceLine.Attribute("SiteLevel").Value,
FolderName = ServiceLine.Descendants("Folder"),
ItemName = ServiceLine.Descendants("Item")
};
i need to pass the serviceline as paramenter to another method, there i need to use the query returned result. so how can i pass the return. what type i need to use to pass the returned data.
Upvotes: 1
Views: 162
Reputation: 56162
Upvotes: 3