Exemplo n.º 1
0
        public override bool Equals(object other)
        {
            bool ret = false;

            if (other is UUID)
            {
                ret = BinaryConverter.ByteArrayCompare(((UUID)other).m_UUID, m_UUID);
            }
            else if (other is String)
            {
                ret = this.ToString() == (String)other;
            }
            else
            {
                throw new Exception("'OTHER' object is not a UUID or string");
            }
            return(ret);
        }