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))
{
if (ReferenceEquals(y, null))
{
return true;
}
else
{
return false;
}
}
else if (ReferenceEquals(y, null))
{
return false;
}
else if (ReferenceEquals(x, y))
{
return true;
}
else
{
return false;
}
}
///
/// 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)
{
return obj.GetHashCode();
}
}
}
}