/// <summary> /// Calculates a hash code for this object. /// </summary> /// <returns>The hash code for this instance of <see cref="RandomParticleProperties"/>.</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 23; if (Speed != null) { hash = hash * 31 + Speed.GetHashCode(); } if (Tint != null) { hash = hash * 31 + Tint.GetHashCode(); } if (Scale != null) { hash = hash * 31 + Scale.GetHashCode(); } if (TimeToLive != null) { hash = hash * 31 + TimeToLive.GetHashCode(); } if (ColorFactor != null) { hash = hash * 31 + ColorFactor.GetHashCode(); } if (RotationChange != null) { hash = hash * 31 + RotationChange.GetHashCode(); } return(hash); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked { var hashCode = TimeUnit.GetHashCode(); hashCode = (hashCode * 397) ^ TimeToLive.GetHashCode(); hashCode = (hashCode * 397) ^ Unlimited.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (int)State; hashCode = (hashCode * 397) ^ TimeToLive.GetHashCode(); hashCode = (hashCode * 397) ^ TimeStamp.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return(EnableCaching.GetHashCode() ^ CacheSite.GetHashCode() ^ TimeToLive.GetHashCode()); }
/// <summary> /// Liefert den Hashcode dieser Instanz. /// </summary> /// <returns>Der Hashcode dieser Instanz.</returns> public override int GetHashCode() { return(Articles.GetHashCode() ^ ArticleUrl.GetHashCode() ^ Author.GetHashCode() ^ ImageDescription.GetHashCode() ^ Image.GetHashCode() ^ Language.GetHashCode() ^ Published.GetHashCode() ^ SkipDays.GetHashCode() ^ SkipHours.GetHashCode() ^ TextInput.GetHashCode() ^ TimeToLive.GetHashCode() ^ Title.GetHashCode() ^ Updated.GetHashCode() ^ Version.GetHashCode() ^ WebMaster.GetHashCode()); }