public bool Equals(HMIConfig other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (!Modes.Equals(other.Modes)) { return(false); } if (!Maps.Equals(other.Maps)) { return(false); } if (!Vehicles.Equals(other.Vehicles)) { return(false); } return(true); }