using System.Collections.Generic; namespace BizHawk.Client.Common { /// /// This class hold a collection /// Different memory domain can be mixed /// public sealed partial class WatchList { private class WatchEqualityComparer : IEqualityComparer { /// /// Determines if two are equals /// /// First /// Second /// True if are equal; otherwise, false public bool Equals(Watch x, Watch y) { if (ReferenceEquals(x, null)) { return ReferenceEquals(y, null); } if (ReferenceEquals(y, null)) { return false; } return ReferenceEquals(x, y); } /// /// Gets the hash value of specified /// /// Watch to get hash /// int that can serves as a unique representation of current Watch public int GetHashCode(Watch obj) => obj.GetHashCode(); } } }