No more ObservableCollection for collections in Silverlight 4.0 RC?

Published Tue, Apr 6 2010 10:08

While migrating a simple project from Silverlight 3.0 to 4.0 RC, I’ve noticed that the my project no longer compiles. I’ve started getting errors which said that something like “Array does not have an Add method”. After looking at the proxy that was generated by the add reference dialog, I’ve noticed that the ObservableCollection option is no longer available on the Service Reference Dialog (as you can see from the following image):

servicereferencedialog

The good news is that this is a bug in the RC version and it should be fixed in the final release. Thank god for that!

Filed under:

Comments

# Nuno Godinho said on Tuesday, April 06, 2010 4:45 AM

Yes this was an issue. You can use the slsvcutil with the /ct option like this:  slsvcutil example.com/service.svc /edb /namespace:"*,SilverlightApplication1.ServiceReference1" /ct:System.Collections.ObjectModel.ObservableCollection`1

But yes this will be solved in the RTW release.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above:  

Search

This Blog

Tags

Community

Archives

Syndication

Email Notifications

News




  • View Luis Abreu's profile on LinkedIn


    Follow me at Twitter

    My books

    Silverlight 4.0: Curso Completo

    ASP.NET 4.0: Curso Completo

    Portuguese LINQ book cover

    Portuguese ASP.NET 3.5 book cover

    Portuguese ASP.NET AJAX book cover

    Portuguese ASP.NET AJAX book cover