まったく同じ参照要素を持つ 2 つの列挙型があり、なぜ Equals が真にならないのか疑問に思っています。
副次的な質問として、各要素を比較する以下のコードは機能しますが、よりエレガントな方法が必要です
var other = (ActivityService) obj;
if (!AllAccounts.Count().Equals(other.AllAccounts.Count())) return false;
for (int i = 0; i < AllAccounts.Count(); i++) {
if (!AllAccounts.ElementAt(i).Equals(other.AllAccounts.ElementAt(i))) {
return false;
}
}
return true;