コード例 #1
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ Hours.GetHashCode() ^
            Minutes.GetHashCode() ^
            Seconds.GetHashCode() ^
            Frames.GetHashCode() ^
            SubFrames.GetHashCode());
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Ecu;
         hashCode = (hashCode * 397) ^ (Frames?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Data?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }