Example #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
     {
         return((EpochSeconds.GetHashCode() * 397) ^ NanosOfSecond);
     }
 }
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = EpochSeconds.GetHashCode();
         hashCode = (hashCode * 397) ^ NanosOfSecond;
         hashCode = (hashCode * 397) ^ (ZoneId != null ? ZoneId.GetHashCode() : 0);
         return(hashCode);
     }
 }
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = EpochSeconds.GetHashCode();
         hashCode = (hashCode * 397) ^ NanosOfSecond;
         hashCode = (hashCode * 397) ^ OffsetSeconds;
         return(hashCode);
     }
 }