阅读背景:

是否有一个简单的方法来比较两个XDocuments是否等于忽略元素/属性顺序?

来源:互联网 

Unit testing my serialization code I found one failed because I had attributes listed in a different order (I'm just comparing the XDocument.ToString() values) and while I could fix that, it really doesn't matter to me in what order the elements or attributes appear as long as they're all there with the right name at the right level of hierarchy. I could probably write a method do this, but I'm wondering if there's an easy built in way I'm not aware of.Unit testing my serialization code I found one




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: