<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Serialization of Custom Properties</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Serialization of Custom Properties</description>
  <pubDate>Tue, 21 Apr 2026 14:11:34 -700</pubDate>
  <lastBuildDate>Fri, 09 Jul 2010 18:08:22 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1957</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Serialization of Custom Properties : If you have defined a custom property...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1957&amp;PID=7587#7587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1957<br /><strong>Posted:</strong> 09-Jul-2010 at 6:08pm<br /><br />If you have defined a custom property (one not backed by the database) on an Entity and want that property's value to be propagated between the client, server, a stream, or imported into another EntityManager, you need to make it serializable.<DIV>&nbsp;</DIV><DIV>You can make a property serializable by:</DIV><OL><LI>Mark it with the &#091;DataMember&#093; attribute.</LI><LI>Make sure you it&nbsp;has a setter.</LI></OL><P>If you are in Silverlight, you will also need to make sure that:</P><OL><LI>The getter and setter are public <strong>OR</strong></LI><LI>Add the &#091;InternalsVisibleTo&#093;&nbsp;attribute to the AssemblyInfo.cs of the model assembly:</LI></OL><P>&#091;assembly: <SPAN =highlight>InternalsVisibleTo</SPAN>("System.Core, PublicKey=00240000048000009400000006020000002400005253413100040000010001008d56c76f9e8649383049f383c44be0ec204181822a6c31cf5eb7ef486944d032188ea1d3920763712ccb12d75fb77e9811149e6148e5d32fbaab37611c1878ddc19e20ef135d0cb2cff2bfec3d115810c3d9069638fe4be215dbf795861920e5ab6f7db2e2ceef136ac23d5dd2bf031700aec232f6c6b1c785b4305c123b37ab")&#093;<BR></P>]]>
   </description>
   <pubDate>Fri, 09 Jul 2010 18:08:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1957&amp;PID=7587#7587</guid>
  </item> 
 </channel>
</rss>