| 12345678910111213141516171819202122232425 |
- using Muchinfo.MTPClient.Data.Model;
- using System.Collections.Generic;
- namespace Muchinfo.MTPClient.Infrastructure.Comparers
- {
- /// <summary>
- /// QuoteGoodsComparer类
- /// </summary>
- public class QuoteGoodsComparer : IEqualityComparer<QuoteGoods>
- {
- 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();
- }
- }
- }
|