次のようなスタイルの XElement を使用しようとしています。
<g style="fill-opacity:0.7">
だから私はこれをやっています:
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));
しかし、私が持っているのは
<g style="System.Linq.Enumerable+WhereSelectEnumerableIterator`2[System.Collections.Generic.KeyValuePair`2[System.String,System.Object],System.Xml.Linq.XAttribute]">
誰かが私を助けることができますか?
よろしくお願いします