示例#1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = 17;
         result = result * 23 + Bars.GetHashCode();
         result = result * 23 + Beats.GetHashCode();
         result = result * 23 + Ticks.GetHashCode();
         return(result);
     }
 }
示例#2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     return(Bars.GetHashCode() ^
            Beats.GetHashCode() ^
            Fraction.GetHashCode());
 }
示例#3
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     return(Beats.GetHashCode() ^ Ticks.GetHashCode());
 }