///<inheritdoc/> public override int GetHashCode() { int hash = 17; // Overflow is fine, just wrap unchecked { hash = (hash * 29) + CodeElement1.GetHashCode(); hash = (hash * 29) + CodeElement2.GetHashCode(); hash = (hash * 29) + Status.GetHashCode(); hash = (hash * 29) + Damage.GetHashCode(); hash = (hash * 29) + Malfunction.GetHashCode(); } return(hash); }