These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Ilist and List
PostPosted: Thu Aug 17, 2006 12:17 am 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
Hi,
When I use criteria.list,it return IList<T> object,but I want to use a List<>,so that I can use functions like Find,FindAll,how should I go about it? How to convert Ilist into List,thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 17, 2006 9:27 am 
Newbie

Joined: Mon Apr 10, 2006 11:45 pm
Posts: 17
You can just create a new List<T> and pass in the IList into the constructor.

Heck, just make the function call in the constructor;

List<T> myList = new List<T>(criteria.List());


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.