.net - Easiest way to return list<T> without first element -
somehow don´t @ moment want.
i data database via nhibernate.
icriteria criteria = session.createcriteria(typeof(price)); criteria.addorder(new nhibernate.expression.order("validfrom", false)); list<price> prices = criteria.list().cast<price>().tolist();
now want return list without first element (the newest price). got working, easiest way?
the easiest way writing criteria.list().cast<price>().skip(1).tolist();
Comments
Post a Comment