locked
ObservableCollection<T> to a List<T>? RRS feed

  • Question

  • Hi,

    I have a webservice, which returns me a List<T>. When I call the webservice (.asmx) and get the result (e.Result) in my silverlight application....I get instead of the List<T> a ObservableCollection<T>.

    My problem is now, how can I convert the ObservableCollection<T> back to a List<T>? Because after editing the ObservableCollection<T> in my silverlight application, I would like to call another webservice to send the list back to the server. But on the server-side I can only use a List<T> and not a ObservalbleCollection<T>.

    Here are my questions:

    1. How can I convert a ObservableCollection<T> back to a List<T>.

    2. Is it right, that I can't use ObservableCollections in the code of my webservice?

    Thank you in advance!

    Best Regards

    Malone

    Friday, September 11, 2009 9:23 AM

Answers

All replies