﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DataContractSerializer and ObservableCollection-s</title><link />http://developers.de/blogs/damir_dobric/archive/2008/08/04/datacontractserializer-and-observablecollection-s.aspx<description>When using Silverlight, you may want to deserialize some data. Because XmlSerializer is not supported, you could peek DataContractSerializer (system.runtime.serialization.dll). In some specific scenario I had an observable list, which contains elements</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: DataContractSerializer and ObservableCollection-s</title><link />http://developers.de/blogs/damir_dobric/archive/2008/08/04/datacontractserializer-and-observablecollection-s.aspx#278882<pubdate>Mon, 26 Mar 2012 22:29:52 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:278882</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks, this look useful - but I can&amp;#39;t even get your code to compile. &amp;nbsp;Here&amp;#39;s what I have:&lt;/p&gt;
&lt;p&gt;DataContractSerializer ser = new DataContractSerializer(typeof(ObservableCollection&amp;lt;object&amp;gt;) new Type[] { typeof(CategoryModel) });&lt;/p&gt;
&lt;p&gt;But VS2008 gives me the following error on the &amp;nbsp;&amp;quot;new Type[] &amp;quot; part: &amp;quot;Only assignment, call, increment, decrement, and new object expressions can be used as a statement&amp;quot; &lt;/p&gt;
&lt;p&gt;Are you sure your syntax is correct and compiles? &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=278882" width="1" height="1"&gt;</description></item></channel></rss>