예제 #1
0
        public override Boolean Equals(Object o)
        {
            IAccountSettingsItem other = o as IAccountSettingsItem;

            if (other == null)
            {
                return(false);
            }
            return(Login.Equals(other.Login) && Token.Equals(other.Token) && ServerName.Equals(other.ServerName));
        }
예제 #2
0
        public int CompareTo(IAccountSettingsItem other)
        {
            int result = Login.CompareTo(other.Login);

            if (result != 0)
            {
                return(result);
            }
            result = Token.CompareTo(other.Token);
            if (result != 0)
            {
                return(result);
            }
            return(ServerName.CompareTo(other.ServerName));
        }
예제 #3
0
 public bool Equals(IAccountSettingsItem other)
 {
     return(Login.Equals(other.Login) && Token.Equals(other.Token) && ServerName.Equals(other.ServerName));
 }