public override int GetHashCode() { unchecked { var hashCode = Small.GetHashCode(); hashCode = (hashCode * 397) ^ Normal.GetHashCode(); hashCode = (hashCode * 397) ^ Large.GetHashCode(); hashCode = (hashCode * 397) ^ XLarge.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Large != null ? Large.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Medium != null ? Medium.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Original != null ? Original.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Small != null ? Small.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Small != null) { hashCode = hashCode * 59 + Small.GetHashCode(); } if (Thumb != null) { hashCode = hashCode * 59 + Thumb.GetHashCode(); } if (Display != null) { hashCode = hashCode * 59 + Display.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (ExtraLarge != null) { hashCode = hashCode * 59 + ExtraLarge.GetHashCode(); } if (Large != null) { hashCode = hashCode * 59 + Large.GetHashCode(); } if (Standard != null) { hashCode = hashCode * 59 + Standard.GetHashCode(); } if (GridView != null) { hashCode = hashCode * 59 + GridView.GetHashCode(); } if (Small != null) { hashCode = hashCode * 59 + Small.GetHashCode(); } if (Thumbnail != null) { hashCode = hashCode * 59 + Thumbnail.GetHashCode(); } if (ExtraSmall != null) { hashCode = hashCode * 59 + ExtraSmall.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(Small.GetHashCode() ^ Small.GetHashCode()); }