I would use LINQ's .Concat
method. The problem is that XmlNodeList
is IEnumerable
as opposed to IEnumerable< XmlNode >
. Thus you have to call .Cast< XmlNode >
on your XmlNodeLists
.
For example:
var List = nodesoriginal.Cast().Concat(nodesupdate.Cast());