There's something wrong with my code or I'm just not understanding this fully. I have the following code that runs a query that MAY contain more than one RIGHT attribute and want to store each within an array for later fetching:
var members = from myList in o_data.Descendants(bp + "Reaction")
select new
{
participant = myList.Element(bp + "RIGHT").Attribute(rdf + "resource").Value,
};
return members.ToArray(); // I this the right conversion (to store all attributed values to array)?
Since they don't have collections in Silverlight, I'm trying to just return an Array... when I call the function like this:
FunctionName.GetValue(0).ToString();
It returns { participant = #(ValueOfAttribute) }
I just want to return the actual value, not the curley braces or "particpant =" What's going on here?