public override int GetHashCode() { return(LinkSourceKind.GetHashCode() ^ Uri.GetHashCode() ^ Status.GetHashCode() ^ LastUpdate.GetHashCode()); }
/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (LastUpdate != null) { hashCode = hashCode * 59 + LastUpdate.GetHashCode(); } if (Level != null) { hashCode = hashCode * 59 + Level.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { var hashCode = -741907486; hashCode = hashCode * -1521134295 + LastUpdate.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <ImmutableArray <Change> > .Default.GetHashCode(Changes); return(hashCode); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CreationDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (LastUpdate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Status?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (int)BloodType; hashCode = (hashCode * 397) ^ Id.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdate.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ Title?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Status.GetHashCode(); hashCode = (hashCode * 397) ^ Description?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Creation.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdate?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Exclusion?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ Conclusion?.GetHashCode() ?? 0; return(hashCode); } }
/// <summary> /// Autogenerated by Visual Studio /// </summary> /// <returns></returns> public override int GetHashCode() { int hashCode = 1640209775; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FolderPath); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FileName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(PreviewInfo); hashCode = hashCode * -1521134295 + LastUpdate.GetHashCode(); return(hashCode); }