コード例 #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            SQLiteCollateExpression dst = obj as SQLiteCollateExpression;

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

            if (!RefCompare.Compare(_expr, dst._expr))
            {
                return(false);
            }

            if (_collationName != dst._collationName)
            {
                return(false);
            }

            return(base.Equals(obj));
        }
コード例 #2
0
        public override object Clone()
        {
            SQLiteExpression expr = null;

            if (_expr != null)
            {
                expr = (SQLiteExpression)_expr.Clone();
            }

            SQLiteCollateExpression res = new SQLiteCollateExpression();

            res._expr          = expr;
            res._collationName = _collationName;
            return(res);
        }