Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xmlNodelists を単一のリストに結合するソリューションを教えてください。
私はLINQの.Concat方法を使用します。問題は、それXmlNodeListがIEnumerableとは対照的であることIEnumerable< XmlNode >です。したがって、あなたはあなたに電話する必要があり.Cast< XmlNode >ますXmlNodeLists。
.Concat
XmlNodeList
IEnumerable
IEnumerable< XmlNode >
.Cast< XmlNode >
XmlNodeLists
例えば:
var List = nodesoriginal.Cast<XmlNode>().Concat<XmlNode>(nodesupdate.Cast<XmlNode>());