Azavea.Open.DAO.Criteria.DaoCriteria.CopyFrom C# (CSharp) Method

CopyFrom() public method

Makes this DaoCriteria into a copy of the other one. Any existing orders, expressions, etc. on this one are lost.
public CopyFrom ( DaoCriteria other ) : void
other DaoCriteria Criteria to copy everything from.
return void
        public void CopyFrom(DaoCriteria other)
        {
            if (other == null)
            {
                Clear();
            }
            else
            {
                BoolType = other.BoolType;
                Expressions.Clear();
                Expressions.AddRange(other.Expressions);
                Orders.Clear();
                Orders.AddRange(other.Orders);
                Start = other.Start;
                Limit = other.Limit;
            }
        }