P
Pete Hearn
Hello All,
New to the whole C#/Webservice/ADO.NET thing, so apologies in advance if
this is a daft question!
I have a webservice which returns a dataset - no problem there and all very
standard. However, I want to pass an arraylist of objects to the method
which returns the dataset (the arraylist contains QBE parameter objects) but
the compiler chokes saying it wants an object[] array instead.
Is it not possible to pass an ArrayList as a param to WebServices, or am I
making a basic mistake here? I like the ArrayList because the number of
objects to pass over varies between calls, plus I can use the "foreach"
construct within the method which seems a neat feature of C#/
TIA
Peter
New to the whole C#/Webservice/ADO.NET thing, so apologies in advance if
this is a daft question!
I have a webservice which returns a dataset - no problem there and all very
standard. However, I want to pass an arraylist of objects to the method
which returns the dataset (the arraylist contains QBE parameter objects) but
the compiler chokes saying it wants an object[] array instead.
Is it not possible to pass an ArrayList as a param to WebServices, or am I
making a basic mistake here? I like the ArrayList because the number of
objects to pass over varies between calls, plus I can use the "foreach"
construct within the method which seems a neat feature of C#/
TIA
Peter