public void UpdateFrom(RefListMk2 <T> other) { ids.Clear(); ids.AddRange(other.ids); if (_root != null) { SetUp(); } }
public void CompareCheck(RefListMk2 <T> other, Stack <string> path) { if (Count != other.Count) { SerializationTools.LogCompError(path, "Count", other.Count, Count); } var count = Math.Min(Count, other.Count); for (int i = 0; i < count; i++) { if (ids[i] != other.ids[i]) { SerializationTools.LogCompError(path, $"id at index: {i.ToString()}", ids[i], other.ids[i]); } } }