public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            BEncodedString other;

            if (obj is string)
            {
                other = new BEncodedString((string)obj);
            }
            else if (obj is BEncodedString)
            {
                other = (BEncodedString)obj;
            }
            else
            {
                return(false);
            }

            return(Toolbox.ByteMatch(textBytes, other.textBytes));
        }
 public bool Equals(byte[] other)
 {
     return(other == null || other.Length != 20 ? false : Toolbox.ByteMatch(Hash, other));
 }