コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (!GetType().Equals(obj.GetType()))
            {
                return(false);
            }
            RewriteQuery <SQ> other = (RewriteQuery <SQ>)obj;

            return(fieldName.Equals(other.fieldName) &&
                   qf.Equals(other.qf) &&
                   srndQuery.Equals(other.srndQuery));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj is null)
            {
                return(false);
            }
            if (!GetType().Equals(obj.GetType()))
            {
                return(false);
            }
            RewriteQuery <SQ> other = (RewriteQuery <SQ>)obj;

            return(m_fieldName.Equals(other.m_fieldName, StringComparison.Ordinal) &&
                   m_qf.Equals(other.m_qf) &&
                   m_srndQuery.Equals(other.m_srndQuery));
        }