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)); }
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)); }
public bool Equals(IAccountSettingsItem other) { return(Login.Equals(other.Login) && Token.Equals(other.Token) && ServerName.Equals(other.ServerName)); }