No more ObservableCollection for collections in Silverlight 4.0 RC?

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!

Advertisements

~ by Luis Abreu on April 6, 2010.

3 Responses to “No more ObservableCollection for collections in Silverlight 4.0 RC?”

  1. Yes this was an issue. You can use the slsvcutil with the /ct option like this: slsvcutil http://example.com/service.svc?wsdl /edb /namespace:”*,SilverlightApplication1.ServiceReference1″ /ct:System.Collections.ObjectModel.ObservableCollection1

    But yes this will be solved in the RTW release.

  2. 9

  3. yuiyuiyu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: