FindMatches Method

Posts   
 
    
Devildog74
User
Posts: 719
Joined: 04-Feb-2004
# Posted on: 15-May-2007 16:54:43   

What should find matches return if there are no items in the collection matching the supplied IPredicate?

Will it return null or a List<int> whose count == 0?

I checked the framework docs and it didnt specify.

Thanks

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 15-May-2007 17:02:02   

Hello,

it will return a new list<int> with a count of 0.

Devildog74
User
Posts: 719
Joined: 04-Feb-2004
# Posted on: 15-May-2007 22:50:06   

Thanks