using Muchinfo.MTPClient.Data.Model;
using System.Collections.Generic;
namespace Muchinfo.MTPClient.Infrastructure.Comparers
{
///
/// QuoteGoodsComparer类
///
public class QuoteGoodsComparer : IEqualityComparer
{
public bool Equals(QuoteGoods x, QuoteGoods y)
{
if (x == null || y == null)
{
return false;
}
return x.Symbol == y.Symbol;
}
public int GetHashCode(QuoteGoods obj)
{
return obj.Symbol.GetHashCode();
}
}
}