[Mono-list] WebMethod with List argument

Ruediger Berlich ruediger.berlich at googlemail.com
Wed Nov 26 11:05:30 EST 2008


Hi there,
I'm playing with Mono's (2.0) web service implementation.

The Web method looks similar to:

public void sortFruit(ref List<Fruit> fruitCollection){
    fruitCollection.Sort();
}

The **auto-generated** client proxy, however, has the signature

public void sortFruit(ref Fruit[] fruitCollection) {
// ...
}

Compilation then fails, as there is no automatic conversion between
List<Fruit> and Fruit[] .

Is this a C# / Mono restriction or am I doing something wrong ?

Thanks and Best Regards,
Ruediger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20081126/acb14607/attachment.html 


More information about the Mono-list mailing list