示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 29 + Timestamp.GetHashCode();
         hash = hash * 29 + High.GetHashCode();
         hash = hash * 29 + Low.GetHashCode();
         hash = hash * 29 + Close.GetHashCode();
         hash = hash * 29 + Open.GetHashCode();
         hash = hash * 29 + PeriodVolume.GetHashCode();
         hash = hash * 29 + OpenInterest.GetHashCode();
         return(hash);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 29 + Timestamp.GetHashCode();
         hash = hash * 29 + High.GetHashCode();
         hash = hash * 29 + Low.GetHashCode();
         hash = hash * 29 + Close.GetHashCode();
         hash = hash * 29 + Open.GetHashCode();
         hash = hash * 29 + TotalVolume.GetHashCode();
         hash = hash * 29 + PeriodVolume.GetHashCode();
         hash = hash * 29 + NumberOfTrades.GetHashCode();
         return(hash);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Timestamp.GetHashCode();
         hashCode = (hashCode * 397) ^ High.GetHashCode();
         hashCode = (hashCode * 397) ^ Low.GetHashCode();
         hashCode = (hashCode * 397) ^ Open.GetHashCode();
         hashCode = (hashCode * 397) ^ Close.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalVolume.GetHashCode();
         hashCode = (hashCode * 397) ^ PeriodVolume.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalTrade;
         hashCode = (hashCode * 397) ^ PeriodTrade;
         hashCode = (hashCode * 397) ^ VWAP.GetHashCode();
         return(hashCode);
     }
 }