예제 #1
0
파일: Order.cs 프로젝트: TzarIvan/ratel
 public override int GetHashCode()
 {
     unchecked {
         var result = (direction != null ? direction.GetHashCode() : 0);
         result = (result * 397) ^ (duration != null ? duration.GetHashCode() : 0);
         result = (result * 397) ^ size.GetHashCode();
         result = (result * 397) ^ (details != null ? details.GetHashCode() : 0);
         result = (result * 397) ^ (symbol != null ? symbol.GetHashCode() : 0);
         result = (result * 397) ^ (description != null ? description.GetHashCode() : 0);
         return(result);
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked {
         return((left.GetHashCode() * 397) ^ right.GetHashCode());
     }
 }