public override int Compare(StringBuffer x, StringBuffer y)
        {
            if (Object.ReferenceEquals(x, y))
            {
                return(0);
            }
            if (x == null)
            {
                return(-1);
            }
            if (y == null)
            {
                return(1);
            }

            if (this.m_IgnoreCase)
            {
                return(StringBuffer.Compare(x, y, StringComparison.OrdinalIgnoreCase));
            }

            return(StringBuffer.Compare(x, y, StringComparison.Ordinal));
        }
        public override bool Equals(StringBuffer x, StringBuffer y)
        {
            if (Object.ReferenceEquals(x, y))
            {
                return(true);
            }
            if ((x == null) || (y == null))
            {
                return(false);
            }

            if (this.m_IgnoreCase)
            {
                if (x.Length != y.Length)
                {
                    return(false);
                }

                return(StringBuffer.Compare(x, y, StringComparison.OrdinalIgnoreCase) == 0);
            }

            return(x.Equals(y));
        }