﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » When To/Not To User</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 05:50:46 GMT</lastBuildDate><ttl>20</ttl><item><title>When To/Not To User</title><link>http://forum.strataframe.net/FindPost11466.aspx</link><description>Hi Folks&lt;/P&gt;&lt;P&gt;All of the SF classes created use the &lt;FONT size=2&gt;&amp;lt;Serializable()&amp;gt; attribute. At Microfour, do you have any general rules on when you make a non-business object&amp;nbsp;class Serializable or not? &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;Clay&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 14 Sep 2007 09:45:48 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: When To/Not To User</title><link>http://forum.strataframe.net/FindPost11469.aspx</link><description>The only time that we make a class serializable is when we plan to serialize the class through a Serialization formatter of some type and store the serialized object on disk, pass it over a remoting session or network stream, etc. and want the entire object intact when it gets to the other side.&amp;nbsp; Also, another time to use serialization is when you want to save the state of an object then retrieve that object from a file or database so that it skips all of the loading and instantiation upstart costs.&amp;nbsp; I don't know if that is very clear or not, but we use serialization very judiciously because there is overhead when passing around a serialized object.&amp;nbsp; So if you do no have the nee dto serialize the object then the attribute is not really necessary.&amp;nbsp; Hope that makes sense :)&amp;nbsp; I was answering about 5 questions as I wrote this post :D</description><pubDate>Fri, 14 Sep 2007 09:45:48 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>