Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj is ClipboardItem other)
            {
                if (Format != other.Format)
                {
                    return(false);
                }

                if (_isDeflated && other._isDeflated)
                {
                    return(Stdlib.MemCmp(_buffer, other._buffer));
                }
                else
                {
                    return(Stdlib.MemCmp(GetDataBuffer(), other.GetDataBuffer()));
                }
            }
            else
            {
                return(false);
            }
        }