public override int GetHashCode() { var hashCode = 926796717; hashCode = hashCode * -1521134295 + OrderId.GetHashCode(); hashCode = hashCode * -1521134295 + ClientId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ExecId); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Time); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(AcctNumber); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Exchange); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Side); hashCode = hashCode * -1521134295 + Shares.GetHashCode(); hashCode = hashCode * -1521134295 + Price.GetHashCode(); hashCode = hashCode * -1521134295 + PermId.GetHashCode(); hashCode = hashCode * -1521134295 + Liquidation.GetHashCode(); hashCode = hashCode * -1521134295 + CumQty.GetHashCode(); hashCode = hashCode * -1521134295 + AvgPrice.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OrderRef); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(EvRule); hashCode = hashCode * -1521134295 + EvMultiplier.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModelCode); hashCode = hashCode * -1521134295 + EqualityComparer <Liquidity> .Default.GetHashCode(LastLiquidity); return(hashCode); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + PositionLongShort.GetHashCode(); hash = hash * 23 + Symbol.GetHashCode(); hash = hash * 23 + Shares.GetHashCode(); if (this.EntryFilledBarIndex == -1) { return(hash); } hash = hash * 23 + EntryMarketLimitStop.GetHashCode(); hash = hash * 23 + EntryFilledBarIndex.GetHashCode(); hash = hash * 23 + EntryFilledPrice.GetHashCode(); hash = hash * 23 + EntrySignal.GetHashCode(); if (this.ExitFilledBarIndex == -1) { return(hash); } hash = hash * 23 + ExitMarketLimitStop.GetHashCode(); hash = hash * 23 + ExitFilledBarIndex.GetHashCode(); hash = hash * 23 + ExitFilledPrice.GetHashCode(); hash = hash * 23 + ExitSignal.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = StringComparer.InvariantCultureIgnoreCase.GetHashCode(Ticker); hashCode = (hashCode * 397) ^ Shares.GetHashCode(); hashCode = (hashCode * 397) ^ PurchasePrice.GetHashCode(); hashCode = (hashCode * 397) ^ StringComparer.InvariantCultureIgnoreCase.GetHashCode(PurchaseDate); return(hashCode); } }