I shouldn't be doing that all the time :-/ I discovered there is an
overload for QueryForList that accepts an IList reult object.

--- Ron Grabowski <[EMAIL PROTECTED]> wrote:

> I do this a lot:
> 
> IList list = ExecuteQueryForList("FooGetMany", null);
> for (int i=0;i<list.Count;i++)
> {
> fooCollection.Add((Foo)list[i]);
> }
> 
> The only question I've had with that is do I need to check 'list' to
> see if is null or am I guaranteed to get an empty (i.e. Count=0)
> IList
> object back if the qeury returned zero results?

Reply via email to