示例#1
0
 /// <summary>
 /// Determines whether two specified objects have the same value.
 /// </summary>
 public static bool Equals(ConnectionSettings a, ConnectionSettings b)
 {
     if (a == b)
     {
         return(true);
     }
     else if (a == null || b == null)
     {
         return(false);
     }
     else
     {
         return
             (a.Host == b.Host &&
              a.Port == b.Port &&
              a.Username == b.Username &&
              a.Password == b.Password &&
              a.ScadaInstance == b.ScadaInstance &&
              ScadaUtils.ArraysEqual(a.SecretKey, b.SecretKey));
     }
 }