M
MarkusJNZ
Hi, I have a very simple webmethod which returns a string.
When I try to consume the webservice and split into an array I receive
an error
"cannot apply indexing with [] to an expression of type 'method group'"
my code for consuming the webservice is below
RandomString _randString = new RandomString();
string[] stringArray = _randString.GetRandomString().Split['|'];
Where RandomString is the webreference in my VS2005 project
and GetRandomString() is the web method I am calling
Any ideas?
thanks
Markus
When I try to consume the webservice and split into an array I receive
an error
"cannot apply indexing with [] to an expression of type 'method group'"
my code for consuming the webservice is below
RandomString _randString = new RandomString();
string[] stringArray = _randString.GetRandomString().Split['|'];
Where RandomString is the webreference in my VS2005 project
and GetRandomString() is the web method I am calling
Any ideas?
thanks
Markus