Equals() public method

Two BasicQueryFactory's are equal when they generate the same types of basic queries, or both cannot generate queries anymore.
public Equals ( object obj ) : bool
obj object
return bool
Beispiel #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));
        }
Beispiel #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));
        }