public override int GetHashCode() { unchecked { var hashCode = (int)State; hashCode = hashCode * 397 ^ Config.GetHashCode(); hashCode = hashCode * 397 ^ CanSuspend.GetHashCode(); hashCode = hashCode * 397 ^ CanUnload.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (int)State; hashCode = (hashCode * 397) ^ (ModId != null ? ModId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CanSuspend.GetHashCode(); hashCode = (hashCode * 397) ^ CanUnload.GetHashCode(); return(hashCode); } }