/// <summary> /// Determines whether two specified connection options have the same value. /// </summary> public static bool Equals(ConnectionOptions a, ConnectionOptions b) { if (a == b) { return(true); } else if (a == null || b == null) { return(false); } else { return (a.Name == b.Name && a.Host == b.Host && a.Port == b.Port && a.Username == b.Username && a.Password == b.Password && a.Instance == b.Instance && a.Timeout == b.Timeout && ScadaUtils.SequenceEqual(a.SecretKey, b.SecretKey)); } }