<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Mike Talbot&#039;s Blog</title>
	<atom:link href="http://whydoidoit.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://whydoidoit.com</link>
	<description>Musing on software development in .NET/Silverlight and C#</description>
	<lastBuildDate>Thu, 16 Feb 2012 09:54:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by whydoidoit</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-2182</link>
		<dc:creator><![CDATA[whydoidoit]]></dc:creator>
		<pubDate>Thu, 16 Feb 2012 09:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-2182</guid>
		<description><![CDATA[I will put some work into identifying such problems and properly test on SL5 - the effect is normally due to a missing property or an erroneous serialization that causes the file position to be &quot;off&quot; and therefore finds an incorrect property.]]></description>
		<content:encoded><![CDATA[<p>I will put some work into identifying such problems and properly test on SL5 &#8211; the effect is normally due to a missing property or an erroneous serialization that causes the file position to be &#8220;off&#8221; and therefore finds an incorrect property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by whydoidoit</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-2180</link>
		<dc:creator><![CDATA[whydoidoit]]></dc:creator>
		<pubDate>Thu, 16 Feb 2012 09:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-2180</guid>
		<description><![CDATA[I guess that would depend on the order that the properties were serialized in.  For serialization you probably just want to believe the value coming back from the file - there is a static property on SilverlightSerializer that you can use to tell if the serializer is currently executing - you could test that and just set the value in the case that you are just retrieving values from storage.]]></description>
		<content:encoded><![CDATA[<p>I guess that would depend on the order that the properties were serialized in.  For serialization you probably just want to believe the value coming back from the file &#8211; there is a static property on SilverlightSerializer that you can use to tell if the serializer is currently executing &#8211; you could test that and just set the value in the case that you are just retrieving values from storage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by whydoidoit</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-2179</link>
		<dc:creator><![CDATA[whydoidoit]]></dc:creator>
		<pubDate>Thu, 16 Feb 2012 09:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-2179</guid>
		<description><![CDATA[Well it certainly should be able to deal with that.  You could send me over your code and I will take a look, it is capable of serializing complex graphs.]]></description>
		<content:encoded><![CDATA[<p>Well it certainly should be able to deal with that.  You could send me over your code and I will take a look, it is capable of serializing complex graphs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by hrvoje</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-2078</link>
		<dc:creator><![CDATA[hrvoje]]></dc:creator>
		<pubDate>Tue, 14 Feb 2012 12:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-2078</guid>
		<description><![CDATA[can this propertie be serialized?  

private int rowSpan;
public int RowSpan
        {
            get { return rowSpan; }
            set
            {
                rowSpan = value;
                if (rowSpan + startRow &gt; maxRow)
                {
                    rowSpan = maxRow - startRow;
                }
                if (value &lt; 1)
                {
                    rowSpan = 1;
                }
                OnPropertyChanged(&quot;RowSpan&quot;);
            }
        }]]></description>
		<content:encoded><![CDATA[<p>can this propertie be serialized?  </p>
<p>private int rowSpan;<br />
public int RowSpan<br />
        {<br />
            get { return rowSpan; }<br />
            set<br />
            {<br />
                rowSpan = value;<br />
                if (rowSpan + startRow &gt; maxRow)<br />
                {<br />
                    rowSpan = maxRow &#8211; startRow;<br />
                }<br />
                if (value &lt; 1)<br />
                {<br />
                    rowSpan = 1;<br />
                }<br />
                OnPropertyChanged(&quot;RowSpan&quot;);<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by grabah</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-2073</link>
		<dc:creator><![CDATA[grabah]]></dc:creator>
		<pubDate>Tue, 14 Feb 2012 10:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-2073</guid>
		<description><![CDATA[Hi.
I don&#039;t know if I&#039;m missing something here but this thing doesn&#039;t work for me even in my pretty simple scenario.
I have object (class A) I want to serialize and it contains a list of objects (class B) B contains object of class C witch have some properties.
it simply does not de-serialize correctly. For most of properties I get 0, or original value but negative. Some of the properties do serialize correctly. What is going on.]]></description>
		<content:encoded><![CDATA[<p>Hi.<br />
I don&#8217;t know if I&#8217;m missing something here but this thing doesn&#8217;t work for me even in my pretty simple scenario.<br />
I have object (class A) I want to serialize and it contains a list of objects (class B) B contains object of class C witch have some properties.<br />
it simply does not de-serialize correctly. For most of properties I get 0, or original value but negative. Some of the properties do serialize correctly. What is going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by Bruce</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-1906</link>
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Sat, 11 Feb 2012 13:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-1906</guid>
		<description><![CDATA[I&#039;m getting a similar problem within OldDeserializeProperties. The propId index is greater than the PropertyIds count, so an index out of range error follow. Did you manage to solve your problem? For me, this only started happening after converting my project for SL4 to SL5.

Bruce]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m getting a similar problem within OldDeserializeProperties. The propId index is greater than the PropertyIds count, so an index out of range error follow. Did you manage to solve your problem? For me, this only started happening after converting my project for SL4 to SL5.</p>
<p>Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordCloud for Silverlight by Génération d&#8217;un nuage de mots avec le plugin WordCloud &#171; Better Like That</title>
		<link>http://whydoidoit.com/wordcloud-for-silverlight/#comment-1347</link>
		<dc:creator><![CDATA[Génération d&#8217;un nuage de mots avec le plugin WordCloud &#171; Better Like That]]></dc:creator>
		<pubDate>Thu, 02 Feb 2012 19:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/?page_id=380#comment-1347</guid>
		<description><![CDATA[[...] la réalisation de celui-ci j&#8217;ai utilisé le plugin WordCloud qui permet de générer un nuage de mots. Ce dernier est configurable, on peut donc choisir la [...]]]></description>
		<content:encoded><![CDATA[<p>[...] la réalisation de celui-ci j&#8217;ai utilisé le plugin WordCloud qui permet de générer un nuage de mots. Ce dernier est configurable, on peut donc choisir la [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by venkat</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-769</link>
		<dc:creator><![CDATA[venkat]]></dc:creator>
		<pubDate>Fri, 27 Jan 2012 07:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-769</guid>
		<description><![CDATA[Hi mike ,
I have few queries. i am facing lot of performance issues with my app 

i have a silverligt application with MVVM strycture and i am using on WCFRIA services and WCF services as well in different requirements  is This serializer will help  for me?
My viewmodel contacting this RIa services and i have some WCF services wxposed by WWF which also communicating via viewmodel 

right now my application is in production with performance issues please suggest?

Thanks,
Venkat]]></description>
		<content:encoded><![CDATA[<p>Hi mike ,<br />
I have few queries. i am facing lot of performance issues with my app </p>
<p>i have a silverligt application with MVVM strycture and i am using on WCFRIA services and WCF services as well in different requirements  is This serializer will help  for me?<br />
My viewmodel contacting this RIa services and i have some WCF services wxposed by WWF which also communicating via viewmodel </p>
<p>right now my application is in production with performance issues please suggest?</p>
<p>Thanks,<br />
Venkat</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by Mohammad Haroon</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-586</link>
		<dc:creator><![CDATA[Mohammad Haroon]]></dc:creator>
		<pubDate>Thu, 19 Jan 2012 21:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-586</guid>
		<description><![CDATA[Thanks Mike; Very helpful tool! 

There was a problem with decimal serialization. The fix was to:

***consider decimal a simple type; change IsSimpleType method as follows:

private static bool IsSimpleType(Type tp)
        {
            return tp.IsPrimitive &#124;&#124; tp == typeof(DateTime) &#124;&#124; tp == typeof(TimeSpan) &#124;&#124; tp == typeof(string) &#124;&#124; tp.IsEnum &#124;&#124; tp == typeof(Guid) &#124;&#124; tp == typeof(decimal);
        }

***For serialization; edit the last condition in WriteValue and add a new one for decimal as follows:

else if (value is int)
                writer.Write((int)value);
            else if (value is decimal)
                writer.Write(((decimal)value).ToString());

***For Deserialization; add this condition:

if (tp == typeof(decimal))
                return Convert.ToDecimal(reader.ReadString());

I&#039;m not sure if this is the most optimal way to do it. But unlike the full framework BinaryWriter, SilverLight BinaryWriter doesn&#039;t support writing decimals. So, I had to go the string route as a work-around.]]></description>
		<content:encoded><![CDATA[<p>Thanks Mike; Very helpful tool! </p>
<p>There was a problem with decimal serialization. The fix was to:</p>
<p>***consider decimal a simple type; change IsSimpleType method as follows:</p>
<p>private static bool IsSimpleType(Type tp)<br />
        {<br />
            return tp.IsPrimitive || tp == typeof(DateTime) || tp == typeof(TimeSpan) || tp == typeof(string) || tp.IsEnum || tp == typeof(Guid) || tp == typeof(decimal);<br />
        }</p>
<p>***For serialization; edit the last condition in WriteValue and add a new one for decimal as follows:</p>
<p>else if (value is int)<br />
                writer.Write((int)value);<br />
            else if (value is decimal)<br />
                writer.Write(((decimal)value).ToString());</p>
<p>***For Deserialization; add this condition:</p>
<p>if (tp == typeof(decimal))<br />
                return Convert.ToDecimal(reader.ReadString());</p>
<p>I&#8217;m not sure if this is the most optimal way to do it. But unlike the full framework BinaryWriter, SilverLight BinaryWriter doesn&#8217;t support writing decimals. So, I had to go the string route as a work-around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Silverlight Serializer (New Version 2!) by jj</title>
		<link>http://whydoidoit.com/silverlight-serializer/#comment-563</link>
		<dc:creator><![CDATA[jj]]></dc:creator>
		<pubDate>Wed, 11 Jan 2012 09:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://whydoidoit.com/#comment-563</guid>
		<description><![CDATA[I think I got it sorted out.... In the one ViewModel that failed serialization (all my other VMs serialize ok!) I had a refs to types declared in another assembly...  A glitch that went under the radar... Moved this to a wrapper Model classin same assmembly as VM and made my VM use the Model class instead; seems to do the trick...

Silverlight Serializer rules!]]></description>
		<content:encoded><![CDATA[<p>I think I got it sorted out&#8230;. In the one ViewModel that failed serialization (all my other VMs serialize ok!) I had a refs to types declared in another assembly&#8230;  A glitch that went under the radar&#8230; Moved this to a wrapper Model classin same assmembly as VM and made my VM use the Model class instead; seems to do the trick&#8230;</p>
<p>Silverlight Serializer rules!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
