Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = _swapTenor.GetHashCode();
         result = (result * 397) ^ _optionExpiry.GetHashCode();
         result = (result * 397) ^ _relativeStrike.GetHashCode();
         return(result);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Date.GetHashCode();
         hashCode = (hashCode * 397) ^ (Currency != null ? Currency.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tenor != null ? Tenor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Schedule != null ? Schedule.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Basis != null ? Basis.GetHashCode() : 0);
         return(hashCode);
     }
 }