Im trying to have a XElement with style like:
<g style="fill-opacity:0.7">
so im doing this:
XElement root = new XElement("g");
root.SetAttributeValue("style",
from attributes in Child.Attributes
where char.IsUpper(attributes.Key[0]) & !attributes.Value.ToString().StartsWith(transformNS)
select new XAttribute("style", attributes.Key + ":" + attributes.Value));
But what i have is
<g style="System.Linq.Enumerable+WhereSelectEnumerableIterator`2[System.Collections.Generic.KeyValuePair`2[System.String,System.Object],System.Xml.Linq.XAttribute]">
someone can help me?
best regards