Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Code != null ? Code.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ InitDateTo.GetHashCode();
         hashCode = (hashCode * 397) ^ InitDateFrom.GetHashCode();
         hashCode = (hashCode * 397) ^ LotSize;
         hashCode = (hashCode * 397) ^ (Quotes != null ? Quotes.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(Symbol other)
 {
     return(string.Equals(Code, other.Code) && InitDateTo.Equals(other.InitDateTo) && InitDateFrom.Equals(other.InitDateFrom) && LotSize == other.LotSize && Equals(Quotes, other.Quotes));
 }