Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteFunctionExpression dst = obj as SQLiteFunctionExpression;

            if (dst == null)
            {
                return(false);
            }

            if (_id != dst._id || _distinct != dst._distinct)
            {
                return(false);
            }

            if (!RefCompare.CompareList <SQLiteExpression>(_exprlist, dst._exprlist))
            {
                return(false);
            }

            return(base.Equals(obj));
        }
Exemplo n.º 2
0
        public override object Clone()
        {
            List <SQLiteExpression> elist = null;

            if (_exprlist != null)
            {
                elist = new List <SQLiteExpression>();
                foreach (SQLiteExpression e in _exprlist)
                {
                    elist.Add((SQLiteExpression)e.Clone());
                }
            }

            SQLiteFunctionExpression res = new SQLiteFunctionExpression();

            res._id       = _id;
            res._distinct = _distinct;
            res._exprlist = elist;
            return(res);
        }