<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Creating an immutable value object in C# - Part IV - A class with a special value</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx</link><description>Other posts: Part I - Using a class Part II - Making the class better Part III - Using a struct In the last post we looked at structs as ways to implement immutable value objects and we discovered that they have several issues. A good thing about the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Geek Lectures - Things geeks should know about &amp;raquo; Blog Archive   &amp;raquo;  Creating an immutable value object in C# - Part IV - A class with a special value</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#6890019</link><pubDate>Sat, 29 Dec 2007 02:51:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6890019</guid><dc:creator>Geek Lectures - Things geeks should know about » Blog Archive   »  Creating an immutable value object in C# - Part IV - A class with a special value</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://geeklectures.info/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value/"&gt;http://geeklectures.info/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Creating an immutable value object in C# - Part IV - A class with a special value</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#6890033</link><pubDate>Sat, 29 Dec 2007 02:53:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6890033</guid><dc:creator>David V. Corbin</dc:creator><description>&lt;p&gt;Why are you ignoring the power of Guidance Automation to create all of the classes?????&lt;/p&gt;
</description></item><item><title>re: Creating an immutable value object in C# - Part IV - A class with a special value</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#6890551</link><pubDate>Sat, 29 Dec 2007 03:47:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6890551</guid><dc:creator>onovotny</dc:creator><description>&lt;p&gt;Shouldn't you simply return false for equality if the other value is null instead of throwing? &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Creating an immutable value object in C# - Part IV - A class with a special value</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#6892225</link><pubDate>Sat, 29 Dec 2007 06:49:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6892225</guid><dc:creator>lucabol</dc:creator><description>&lt;p&gt;David: because I barely know what it is ;-)&lt;/p&gt;
&lt;p&gt;Anyhow, I think there is a simpler solution. I'll post it later.&lt;/p&gt;
&lt;p&gt;Onovotny: yes, that is usually the recommended way. In my case, I don't want for these objects to ever be null. If one of them is null, it means that there is something wrong in my app and I want to know it. Hence the exception.&lt;/p&gt;
</description></item><item><title>Community Convergence XXXVIII</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#6964360</link><pubDate>Thu, 03 Jan 2008 10:13:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6964360</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;Welcome to the thirty-eighth Community Convergence. These posts are designed to keep you in touch with&lt;/p&gt;
</description></item><item><title>Immutability in C#</title><link>http://blogs.msdn.com/lucabol/archive/2007/12/28/creating-an-immutable-value-object-in-c-part-iv-a-class-with-a-special-value.aspx#7136484</link><pubDate>Thu, 17 Jan 2008 02:36:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7136484</guid><dc:creator>&lt;a href="http://weblogs.asp.net/bleroy"&gt;Tales from the Evil Empire&lt;/a&gt;</dc:creator><description>&lt;p&gt;For some reason, there's been a lot of buzz lately around immutability in C#. If you're interested in&lt;/p&gt;
</description></item></channel></rss>