比较两个object是否相等

You can use the Enumerable.SequenceEqual() in the System.Linq to compare the contents in the array

bool isEqual = Enumerable.SequenceEqual(target1, target2);
原文地址:https://www.cnblogs.com/z45281625/p/12575602.html