Re: how to deal with a method that returns object array?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Thu, 8 Mar 2007 21:57:01 -0000
Ace <Ace@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
thanks bunch.
in fact, i tried it and it compiled and ran fine. however, the problem is
that res is null after making a call to getSearch() (which is a web service)
and i was not sure if i was doing it wrong or it is just supposed to be null.
Well, to check whether that kind of thing is valid or not, I'd suggest
trying it in a simpler environment first.
btw, if i were to loop through this array, is it the correct syntax?
foreach (myresult x in res)
{
}
Yes.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- References:
- Re: how to deal with a method that returns object array?
- From: Jon Skeet [C# MVP]
- Re: how to deal with a method that returns object array?
- Prev by Date: Re: Help With PInvoke and SetupDiEnumDriverInfo/SP_DRVINFO_DATA
- Next by Date: Re: Non .Net C++ xmlrpc to C#
- Previous by thread: Re: how to deal with a method that returns object array?
- Next by thread: Non .Net C++ xmlrpc to C#
- Index(es):