<?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>Krzysztof Cwalina</title><link>http://blogs.msdn.com/b/kcwalina/</link><description>Designing Reusable Frameworks</description><dc:language>en-US</dc:language><generator>Telligent Community 5.6.583.17018 (Build: 5.6.583.17018)</generator><item><title>Talk: A .NET developer's view of Windows 8 Metro style app development</title><link>http://blogs.msdn.com/b/kcwalina/archive/2011/09/20/10214468.aspx</link><pubDate>Wed, 21 Sep 2011 00:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10214468</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=10214468</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2011/09/20/10214468.aspx#comments</comments><description>&lt;p&gt;I just came back from &lt;a title="BUILD" href="http://www.buildwindows.com/" target="_blank"&gt;BUILD&lt;/a&gt; where I gave a talk about a new .NET profile that managed developers will be using when writing Windows 8 Metro style apps. You can watch the video at &lt;a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C"&gt;http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10214468" width="1" height="1"&gt;</description></item><item><title>Portable Library Tools Release</title><link>http://blogs.msdn.com/b/kcwalina/archive/2011/06/15/10174954.aspx</link><pubDate>Wed, 15 Jun 2011 17:49:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10174954</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=10174954</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2011/06/15/10174954.aspx#comments</comments><description>&lt;p&gt;We just released the official version of the Portable Library Tools. The set of tools and updates to .net platform allow you to create dlls that can be used in .NET Framework, Silverlight, Windows Phone, and XBOX projects. You can download the tools &lt;a href="http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/" title="here"&gt;here&lt;/a&gt; and read more about them on &lt;a href="http://msdn.microsoft.com/en-us/library/gg597391.aspx" title="MSDN"&gt;MSDN&lt;/a&gt;.&lt;/p&gt;
&lt;div class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10174954" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/PLP/">PLP</category></item><item><title>MEF Primitives Explained</title><link>http://blogs.msdn.com/b/kcwalina/archive/2009/06/09/mefprimitives.aspx</link><pubDate>Tue, 09 Jun 2009 19:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9716491</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=9716491</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2009/06/09/mefprimitives.aspx#comments</comments><description>&lt;P&gt;Daniel just wrote a really nice &lt;A href="http://blogs.msdn.com/dsplaisted/archive/2009/06/08/a-crash-course-on-the-mef-primitives.aspx" mce_href="http://blogs.msdn.com/dsplaisted/archive/2009/06/08/a-crash-course-on-the-mef-primitives.aspx"&gt;post explaining the basics of MEF primitives&lt;/A&gt;. I recommend this to all interested in the internals or in extending MEF.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9716491" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>Custom Programming Models for MEF (Provider Model Contrib)</title><link>http://blogs.msdn.com/b/kcwalina/archive/2009/03/03/9457619.aspx</link><pubDate>Wed, 04 Mar 2009 01:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9457619</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=9457619</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2009/03/03/9457619.aspx#comments</comments><description>&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;The MEF composition engine operates on (composes) abstractions called ComposableParts. By default, parts are implemented as simple .NET classes annotated with MEF attributes (ExportAttribute and ImportAttribute). But, we envision that some parts will be implemented through variety of different mechanisms. For example, parts can be .NET types annotated with external files, DLR objects, XAML files, etc. We call such alternative means of specifying parts “custom programming models.”&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;In v1 of MEF, we focused on getting the default programming model &lt;U&gt;super easy to use&lt;/U&gt; (most MEF users need to only understand a handful of types) and getting the ComposablePart abstractions &lt;U&gt;right&lt;/U&gt; (making it possible to create custom programming models). We did not focus on making it easy to create custom programming models (quite advanced scenario).&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Calibri&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;A href="http://www.thecodejunkie.com/"&gt;&lt;FONT size=3&gt;Andreas&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt; stepped in and filled in that hole. He created a &lt;/FONT&gt;&lt;A href="http://mefcontrib.codeplex.com/Wiki/View.aspx?title=Provider%20Model"&gt;&lt;FONT size=3&gt;MEF contrib project&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt; which is a set of helper libraries that make it quite easy to create custom programming models. For all those who like to play around with internals of technologies like MEF, I recommend looking at the library.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9457619" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>MEF Preview #4 Released</title><link>http://blogs.msdn.com/b/kcwalina/archive/2009/01/27/mef4.aspx</link><pubDate>Tue, 27 Jan 2009 19:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9377747</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=9377747</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2009/01/27/mef4.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;We have just released a new update to &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/MEF" mce_href="http://www.codeplex.com/MEF"&gt;&lt;FONT face=Calibri size=3&gt;MEF&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;. I am super excited about this release as it represents something quite close to what we are going to ship in terms of public APIs. In the last milestone, we have done quite significant API cleanup, renamed many core types to what I think will be their final names, and finally we have done some namespace factoring work. Now, the primitives, host APIs, and parts’ APIs are all in separate namespaces.&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9377747" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>PDC 2008 Talk: Framework Design Guidelines</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/10/30/9024710.aspx</link><pubDate>Thu, 30 Oct 2008 19:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024710</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=9024710</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/10/30/9024710.aspx#comments</comments><description>&lt;P&gt;Our PDC talk has been posted on Channel9. &lt;A href="http://channel9.msdn.com/pdc2008/PC58/"&gt;http://channel9.msdn.com/pdc2008/PC58/&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;Here is the talk summary:&lt;/P&gt;
&lt;P&gt;&lt;SPAN id=ctl00_MainPlaceHolder_Starter_BodyLabel&gt;&lt;EM&gt;Learn about guidelines that have helped the Microsoft .NET Framework grow into the most popular developer framework Microsoft has ever created. After ten years of use, we have an enormous amount of real customer data about what makes great framework design. Whether you are building your own framework or just want to get the most out of the .NET Framework, this is a must-attend talk! Join Krzysztof Cwalina and Brad Abrams, authors of the Dr. Dobbs award winning "Framework Design Guidelines" book, and get a sneak peek at the content from the 2nd edition (first available at PDC2008).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9024710" width="1" height="1"&gt;</description></item><item><title>Framework Design Guidelines Videos</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/10/27/9018557.aspx</link><pubDate>Mon, 27 Oct 2008 20:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018557</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=9018557</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/10/27/9018557.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Brad and I just did a couple of video interviews that are now accessible online. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;In the first one, we are talking about our PDC presentation (for those at the PDC, it’s at 4pm today). You can get it at&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://www.informit.com/podcasts/episode.aspx?e=5a161893-c1ce-4449-8b67-31baa54ce316" mce_href="http://www.informit.com/podcasts/episode.aspx?e=5a161893-c1ce-4449-8b67-31baa54ce316"&gt;&lt;FONT face=Calibri size=3&gt;10 Years of Framework Design Guidelines (video)&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The second interview is about just released 2&lt;SUP&gt;nd&lt;/SUP&gt; edition of the &lt;/FONT&gt;&lt;A href="https://www.amazon.com/dp/0321545613?tag=cwalina-20&amp;amp;camp=0&amp;amp;creative=0&amp;amp;linkCode=as1&amp;amp;creativeASIN=0321545613&amp;amp;adid=1HWJV1995A31HB5EKE7B&amp;amp;" mce_href="https://www.amazon.com/dp/0321545613?tag=cwalina-20&amp;amp;camp=0&amp;amp;creative=0&amp;amp;linkCode=as1&amp;amp;creativeASIN=0321545613&amp;amp;adid=1HWJV1995A31HB5EKE7B&amp;amp;"&gt;&lt;FONT face=Calibri size=3&gt;Framework Design Guidelines book&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;. You can get the video at&amp;nbsp;&lt;/FONT&gt;&lt;A href="http://www.informit.com/podcasts/episode.aspx?e=de5a183c-7bb9-4a0e-9499-73b54ae573b6" mce_href="http://www.informit.com/podcasts/episode.aspx?e=de5a183c-7bb9-4a0e-9499-73b54ae573b6"&gt;&lt;FONT face=Calibri size=3&gt;Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (video)&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Enjoy!&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9018557" width="1" height="1"&gt;</description></item><item><title>MEF on CodePlex</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/09/05/mefcodeplex.aspx</link><pubDate>Sat, 06 Sep 2008 00:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926943</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8926943</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/09/05/mefcodeplex.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;We have just released an update to MEF. You can get it at &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/MEF" mce_href="http://www.codeplex.com/MEF"&gt;&lt;FONT face=Calibri size=3&gt;http://www.codeplex.com/MEF&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The changes are quite significant:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;The preview ships with sources under a very permissive license (Ms-LPL).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;We now support constructor injection. Feature that the community asked for.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;3.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;We completely redesigned MEF’s extensibility points. The extensibility points are designed to support writing custom providers of composition data. For example, out of the box MEF requires composable parts to be attributed with attributes that provide metadata describing the composition. We got lots of feedback that this is not acceptable in many scenarios. The new extensibility points make it easier to extend MEF to externalize the metadata (to an XML file for example). Note, that the changes are just the first step toward the goal of making the extensibility easy and powerful. We will most probably keep making improvements in this space in the future, so feedback on the new extensibility points would be more then welcome.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;4.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;We significantly cleaned up the container APIs. But as above, there is more clean up to come in the future. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt 0.25in"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8926943" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>Extensible Framework Design Studio Released</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/08/30/8910353.aspx</link><pubDate>Sat, 30 Aug 2008 20:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8910353</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8910353</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/08/30/8910353.aspx#comments</comments><description>&lt;P&gt;This summer we had a high school intern, Nick Moloney, who worked on incorporating &lt;A class="" href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx" mce_href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx"&gt;MEF&lt;/A&gt; into &lt;A class="" href="http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx" mce_href="http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx"&gt;FDS&lt;/A&gt;. The fruits of his labor are now on code gallery. You can download the extensible FDS &lt;A class="" href="http://code.msdn.microsoft.com/fds" mce_href="http://code.msdn.microsoft.com/fds"&gt;here&lt;/A&gt;. Congratulations to Nick!&lt;/P&gt;
&lt;P&gt;The current release has just a few extensibility points, but you should expect&amp;nbsp;more in the future.&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8910353" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>API Design Myth: Exceptions are for "Exceptional Errors"</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/07/17/exceptionalerror.aspx</link><pubDate>Thu, 17 Jul 2008 23:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8744883</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>17</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8744883</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/07/17/exceptionalerror.aspx#comments</comments><description>&lt;P&gt;I was updating FDG section on exceptions. I added one anntation that I thought I would post here as well:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE class=MsoNormalTable style="MARGIN: auto auto auto 9pt; BORDER-COLLAPSE: collapse; mso-table-layout-alt: fixed; mso-padding-alt: 9.0pt 9.0pt 9.0pt 9.0pt" cellSpacing=0 cellPadding=0 border=0 class="MsoNormalTable"&gt;
&lt;TBODY&gt;
&lt;TR style="HEIGHT: 80pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes"&gt;
&lt;TD class="" style="BORDER-RIGHT: black 3pt solid; PADDING-RIGHT: 9pt; BORDER-TOP: black 3pt solid; PADDING-LEFT: 9pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 9pt; BORDER-LEFT: black 3pt solid; WIDTH: 423pt; PADDING-TOP: 9pt; BORDER-BOTTOM: black 3pt solid; HEIGHT: 80pt; mso-shading: windowtext; mso-pattern: solid #E6E6E6" vAlign=top width=564&gt;
&lt;P class=AnnotationHead style="MARGIN: 6pt 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-no-proof: yes; mso-font-width: 100%"&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;&lt;v:shapetype id=_x0000_t75 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;v:shape id=Picture_x0020_12 style="VISIBILITY: visible; WIDTH: 12.75pt; HEIGHT: 8.25pt; mso-wrap-style: square" type="#_x0000_t75" o:spid="_x0000_i1025"&gt;&lt;v:imagedata mce_src="file:///C:\Users\KRZYSZ~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.wmz" o:title="" src="file:///C:\Users\KRZYSZ~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.wmz"&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-font-width: 100%"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=AnnotationHead style="MARGIN: 6pt 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-font-width: 100%"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;KRZYSZTOF CWALINA&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=AnnotationBody style="MARGIN: 9pt 0in 12pt"&gt;&lt;SPAN style="mso-font-width: 100%"&gt;&lt;FONT face=Batang&gt;One of the biggest misconceptions about exceptions is that they are for “exceptional conditions.” The reality is that they are for communicating &lt;U&gt;error&lt;/U&gt; conditions. From a framework design perspective, there is no such thing as an “exceptional condition”. Whether a condition is exceptional or not depends on the context of usage, --- but reusable libraries rarely know how they will be used. For example, OutOfMemoryException might be exceptional for a simple data entry application; it’s not so exceptional for applications doing their own memory management (e.g. SQL server). In other words, one man’s exceptional condition is another man’s chronic condition.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8744883" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item><item><title>Nullable&lt;T&gt; Usage Guidelines</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/07/16/nullable.aspx</link><pubDate>Wed, 16 Jul 2008 23:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8740209</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8740209</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/07/16/nullable.aspx#comments</comments><description>&lt;H2 style="MARGIN: 12pt 0in 6pt"&gt;&lt;A class="" name=_Toc33351794&gt;&lt;/A&gt;&lt;FONT face=Verdana color=#808080&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/H2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;These guidelines were just added as part of an update to the Framework Design Guidelines book (&lt;A class="" href="http://blogs.msdn.com/kcwalina/archive/2008/01/03/FrameworkDesignGuidelines2ndEdition.aspx" mce_href="http://blogs.msdn.com/kcwalina/archive/2008/01/03/FrameworkDesignGuidelines2ndEdition.aspx"&gt;upcomming 2nd edition&lt;/A&gt;). Hope you find them useful.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;Nullable&amp;lt;T&amp;gt; is a simple type added to the .NET Framework 2.0. The type was designed to be able to represent Value Types with “null” values. &lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;Nullable&amp;lt;int&amp;gt; x = null;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;Nullable&amp;lt;int&amp;gt; y = 5;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;Console.WriteLine(x == null); // prints true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;Console.WriteLine(y == null); // prints false&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Note that C# provides special support for Nullable&amp;lt;T&amp;gt; in the form of language aliases for Nullable types, lifted operators, and the new coalescing operator. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;int? x = null; // &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;long? d = x; // calls cast operator from Int32 to Int64&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;Console.WriteLine(d??10); // coalescing; prints 10 because d == null&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=checkbox&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #00b050; FONT-FAMILY: Wingdings"&gt;þ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.0pt"&gt;CONSIDER&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt; using Nullable&amp;lt;T&amp;gt;&lt;I&gt; &lt;/I&gt;to represent values that might not be present (i.e. optional values). For example, use it when returning a strongly typed record from a database with a property representing an optional table column.&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; FONT-FAMILY: Wingdings; mso-bidi-font-size: 10.0pt"&gt;ý&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; mso-bidi-font-size: 10.0pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.0pt"&gt;Do NOT&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;use Nullable&amp;lt;T&amp;gt; unless you would use a reference type in a similar manner, taking advantage of the fact that reference type values can be null.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;For example, you would not use null to represent optional parameters.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// bad design&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Foo {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; public Foo(string name, int? id);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;} &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// good design&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Foo {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; public Foo(string name, int id); &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp; public Foo(string name);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;} &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; FONT-FAMILY: Wingdings; mso-bidi-font-size: 10.0pt"&gt;ý&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; mso-bidi-font-size: 10.0pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.0pt"&gt;AVOID&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;using Nullable&amp;lt;bool&amp;gt; to represent a general three-state value. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Nullable&amp;lt;bool&amp;gt; should only be used to represent truly optional Boolean values: true, false, and not available. If you simply want to represent three states (e.g. yes, no, cancel), consider using an enum.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: Courier"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; FONT-FAMILY: Wingdings; mso-bidi-font-size: 10.0pt"&gt;ý&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: red; mso-bidi-font-size: 10.0pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-size: 10.0pt"&gt;AVOID&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;using System.DBNull. Prefer Nullable&amp;lt;T&amp;gt; instead. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 4pt; BACKGROUND: #e9fdf3; PADDING-BOTTOM: 1pt; MARGIN-LEFT: 12.25pt; BORDER-LEFT: windowtext 1pt solid; MARGIN-RIGHT: 0in; PADDING-TOP: 1pt; BORDER-BOTTOM: windowtext 1pt solid; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt"&gt;
&lt;P class=note style="BACKGROUND: #e9fdf3; MARGIN: 6pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;EM&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"&gt;Nullable&amp;lt;T&amp;gt; is in general a better representation of optional database values. One thing to consider though it that while Nullable&amp;lt;T&amp;gt; gives you the ability to represent null values, you don’t get database null operational semantics. Specifically, you don’t get null propagation through operators and functions. If you deeply care about the propagation semantics, consider sticking with DBNull.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8740209" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item><item><title>POCO Support for MEF</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/07/07/mefpoco.aspx</link><pubDate>Mon, 07 Jul 2008 21:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8703555</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8703555</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/07/07/mefpoco.aspx#comments</comments><description>Jason, our technical evangelist, just posted a sample showing how &lt;A class="" href="http://www.managed-world.com/2008/07/04/BuildingAFluentInterfaceForMEF.aspx" mce_href="http://www.managed-world.com/2008/07/04/BuildingAFluentInterfaceForMEF.aspx"&gt;MEF can compose plain old CLR objects&lt;/A&gt;. &lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8703555" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>MEF and System.AddIns</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/06/13/mafmef.aspx</link><pubDate>Fri, 13 Jun 2008 19:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8594649</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8594649</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/06/13/mafmef.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;FONT face=Calibri size=3&gt;Several people asked about the relationship between MEF and the technology in System.AddIn namespace. The answer is that these two are independent and complementary features. MEF is a primarily a composition engine. System.AddIn is an add-in activation and isolation technology. MEF’s engine will be able to compose objects that are simple CLR object, COM and DCOM components (more precisely managed proxies to these components), remoting proxies, and finally System.AddIn add-ins. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;FONT face=Calibri size=3&gt;The following is roughly how we see the basic “architecture” (conceptual diagram) of these technologies. As you can see on the diagram, the composition engine works on abstract representations of components currently called ComponentBinders. The composition engine is not concerned with how the parts are actually implemented or activated (COM, simple new operator, or System.AddIns activation). Its only concern is to inspect the binders for dependencies they need (imports) and objects they can give (exports), and provide “matchmaking” services for the binders (blue arrows on the diagram).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in" mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;IMG src="http://farm4.static.flickr.com/3017/2575048355_8aaa55bec2_o_d.jpg" mce_src="http://farm4.static.flickr.com/3017/2575048355_8aaa55bec2_o_d.jpg"&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8594649" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>MEF CTP 1 Released</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/06/05/mefctp.aspx</link><pubDate>Thu, 05 Jun 2008 23:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576275</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8576275</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/06/05/mefctp.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'"&gt;Several members of my team have already spilled the beans, but yes (!) we just released our first public preview of MEF. You can grab the bits from &lt;A href="http://code.msdn.microsoft.com/mef"&gt;here&lt;/A&gt; and read a past post for a &lt;A href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx"&gt;high level overview&lt;/A&gt;.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'"&gt;I am super excited about the release. It’s a very early preview and still lots of work remains, but the CTP is a significant milestone for us. Designing a general purpose extensibility framework is &lt;U&gt;hard&lt;/U&gt;, and so we felt very strong about releasing such an early preview to the world to get early feedback from the community. Hopefully together we can create a set of APIs that scale to the variety of extensibility scenarios: from developers using DI and IoC to large applications with extensibility points and plug-ins.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'"&gt;In my previous post about MEF, several people asked about constructor injection and non-attribute based programming model. Constructor injection is not supported in this preview, but we did start working on the design of the composition engine that would allow it. The non-attribute based programming model (where connections are specified externally) is actually enabled, but not built-in. I will try to post a sample showing how to do it, but for those that want to experiment themselves: you need to implement a custom component binder. The built-in binder inspects types and looks for the attributes. You custom binder might want to read the same information (which type to inject where) in some external file.&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8576275" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>Managed Extensibility Framework</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/04/25/mef.aspx</link><pubDate>Fri, 25 Apr 2008 19:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8424359</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>75</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8424359</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/04/25/mef.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Several months ago we formed what we call Application Framework Core team. The charter of the team is to play the same role in the application frameworks space (WinForms, ASP.NET, WPF, Silverlight) as the Base Class Libraries (BCL) team plays at the bottom of the platform stack. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The BCL team did a good job fulfilling the role of the team responsible for decreasing duplication and providing common abstractions for the low levels of the platform. Unfortunately, we did not have a similar team really focused on these sets of issues higher up on the stack. This resulted in some unfortunate duplication (like several data binding models for each of the application models, different dependency property system for WPF and WF) and lack of common abstractions (what undo APIs should my generic application plugin call?) for application model code. The Application Framework Core team is now in place to start addressing the problems.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;One of the first concrete projects that we are working on and are ready to slowly talk about is what we call the &lt;B style="mso-bidi-font-weight: normal"&gt;Managed Extensibility Framework&lt;/B&gt; (MEF). We observed that there are more and more places in the .NET Framework itself and increasingly managed applications (like Visual Studio) where we want to provide, or already provide, hooks for 3&lt;SUP&gt;rd&lt;/SUP&gt; party extensions. Think about TraceListener plugins for the TraceSource APIs, pluggable rules for Visual Studio Code Analysis (and the standalone FxCop), etc. In the absence of a built-in extensibility framework (like MEF), our developers who want to enable such extensions often are forced to create custom mechanisms, thus duplication. We hope that MEF will both stop such duplication and encourage/enable more extensibility in the Framework and applications built on top of it. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;We will blog more details about MEF in the upcoming months, but here are some early details (subject to changes, of course): MEF is a set of features referred in the academic community and in the industry as a &lt;I style="mso-bidi-font-style: normal"&gt;Naming and Activation Service&lt;/I&gt; (returns an object given a “name”), &lt;I style="mso-bidi-font-style: normal"&gt;Dependency Injection&lt;/I&gt; (DI) framework, and a &lt;I style="mso-bidi-font-style: normal"&gt;Structural Type System&lt;/I&gt; (duck typing). These technologies (and other like System.AddIn) together are intended to enable the world of what we call &lt;I style="mso-bidi-font-style: normal"&gt;Open and Dynamic Applications&lt;/I&gt;, i.e. make it easier and cheaper to build extensible applications and extensions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The work we are doing builds on several existing Microsoft technologies (like the &lt;/FONT&gt;&lt;A href="http://www.codeplex.com/unity/"&gt;&lt;FONT face=Calibri size=3&gt;Unity&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; framework) and with feedback from the DI community. The relationship with the Unity team is the regular relationship between the P&amp;amp;P group and the .NET Framework group where we trickle successful technologies and ideas from the P&amp;amp;P team into the .NET Framework after they have passed the test of time. We have done this with some features in the diagnostics, exceptions, and UI space in the past. The direct engagement with the DI community is also starting. We gave a talk on the technology at last week’s MVP Summit, and&amp;nbsp;talked with &lt;/FONT&gt;&lt;A href="http://codebetter.com/blogs/jeremy.miller/"&gt;&lt;FONT face=Calibri size=3&gt;Jeremy Miller&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; (the owner of Structure Map) and &lt;/FONT&gt;&lt;A href="http://www.ayende.com/Blog/"&gt;&lt;FONT face=Calibri size=3&gt;Ayende Rahien&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; (Rhino Mocks) . We got lots of great feedback from Jeremy and Ayende&amp;nbsp;and I think their experience in the DI space and their feedback will be invaluable as the project evolves. Thanks guys! We are of course also looking forward to engaging others in the DI community.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;And finally here is some code showing basic scenarios our framework supports:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Creating an Extension Point in an Application:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=CodeCxSpFirst style="MARGIN: 6pt 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;public class HelloWorld {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&lt;/SPAN&gt;&lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;[Import]&lt;/SPAN&gt; // import declares what a component needs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&lt;/SPAN&gt;public OutputDevice Output;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public void SayIt() {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Output.WriteLine("Hello World");&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&lt;/SPAN&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;// Extension Contract &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;public abstract class OutputDevice {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;void WriteLine(string output)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpLast style="MARGIN: 0in 0in 6pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; mso-add-space: auto"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;1.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Creating an Extension&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=CodeCxSpFirst style="MARGIN: 6pt 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;[Export(typeof(OutputDevice))]&lt;/SPAN&gt; // export declared what a component gives&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;public class CustomOutput : OutputDevice {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;public void WriteLine(string output) {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Console.WriteLine(output);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpLast style="MARGIN: 0in 0in 6pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt -0.25in"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1; mso-add-space: auto"&gt;&lt;SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;2.&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Magic that makes composes (DIs) the application with the extensions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=CodeCxSpFirst style="MARGIN: 6pt 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;var domain = new ComponentDomain();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;var hello = new HelloWorld();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;// of course this can be implicit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;domain.AddComponent(hello); &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;domain.AddComponent(new CustomOutput());&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;o:p&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=CodeCxSpMiddle style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;&lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;domain.Bind();&lt;/SPAN&gt; // bind matches the needs to gives&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=CodeCxSpLast style="MARGIN: 0in 0in 6pt 0.25in"&gt;&lt;STRONG&gt;&lt;FONT face="Lucida Console"&gt;hello.SayIt();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Expecting lots of questions, I will preemptively answer (&lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Wingdings; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;J&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;): we don’t yet know whether or when we will ship this. We do have working code and we are looking into releasing a preview/CTP of the technology. For now we would be very interested in high level feedback. What do you think hinders extensibility in frameworks and application? Where would you like the Framework to be more extensible? What DI framework features you need, like, want, and use on daily basis? i.e. is constructor injection required? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;And lastly, we are &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/kcwalina/archive/2008/03/14/8209671.aspx"&gt;&lt;FONT face=Calibri size=3&gt;hiring&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;! :-)&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8424359" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/MEF/">MEF</category></item><item><title>Framework Design Guidelines Digest v2</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/04/09/fdgdigest.aspx</link><pubDate>Thu, 10 Apr 2008 00:19:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8373327</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>13</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8373327</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/04/09/fdgdigest.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Almost 4 years ago, I &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/kcwalina/archive/2004/09/28/235232.aspx"&gt;&lt;FONT face=Calibri size=3&gt;blogged about Framework Design Guidelines Digest&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;. At that time, my blog engine did not support attaching files and I did not have a convenient online storage to put the document on, and so I asked people to email me if they want an offline copy. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Believe it or not, I still receive 1-2 emails a week with requests for the offline copy. Now that I have a convenient way to put the document online, and the fact that I wanted to make some small updates, I would like to repost the digest. &lt;/FONT&gt;&lt;FONT face=Calibri size=3&gt;The abstract is below and the full document can be downloaded &lt;/FONT&gt;&lt;A href="http://code.msdn.microsoft.com/fds/Release/ProjectReleases.aspx?ReleaseId=873"&gt;&lt;FONT face=Calibri size=3&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="FONT-SIZE: 9pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-size: 11.0pt"&gt;This document is a distillation and a simplification of the most basic guidelines described in detail in a book titled Framework Design Guidelines by Krzysztof Cwalina and Brad Abrams. &lt;/SPAN&gt;&lt;/I&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="FONT-SIZE: 9pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-size: 11.0pt"&gt;Framework Design Guidelines were created in the early days of .NET Framework development. They started as a small set of naming and design conventions but have been enhanced, scrutinized, and refined to a point where they are generally considered the canonical way to design frameworks at Microsoft. They carry the experience and cumulative wisdom of thousands of developer hours over several versions of the .NET Framework.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8373327" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item><item><title>Framework Design Studio Released</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/04/04/8357773.aspx</link><pubDate>Fri, 04 Apr 2008 21:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8357773</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>21</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8357773</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/04/04/8357773.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;When I was coming back from Mix 2007, I was bored on the plane and so started to write a dev tool. What a geeky thing to do on a plane. :-)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The tool allows comparing two versions of an assembly to identify API differences: API additions and removals. Comparing versions of APIs comes very handy during API design process. Often you want to ensure that things did not get removed accidentally (which can cause incompatibilities), and as APIs grow, you want to review the addition without having to re-review APIs that were already reviewed. The tool, called Framework Design Studio (FDS) supports these scenarios. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Later on, I got lots of help from Hongping Lim (a developer on our team), and David Fowler (our 2007 summer intern). David ported the application to WPF, and Hongping basically took it from an early prototype stage to what it is today and made it possible to ship it externally.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Anyway, you can get the tool at the MSDN &lt;/FONT&gt;&lt;A href="http://code.msdn.microsoft.com/fds"&gt;&lt;FONT face=Calibri size=3&gt;Code Gallery&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;, the user guide is attached to this post, and lastly, here is the API diff output that the tool generates. Hope you find it useful.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;IMG title=FDS style="WIDTH: 956px; HEIGHT: 543px" height=543 alt=FDS hspace=2 src="http://farm3.static.flickr.com/2402/2387235355_6c8c8f3565_o_d.jpg" width=956 align=absMiddle vspace=2 border=2 mce_src="http://farm3.static.flickr.com/2402/2387235355_6c8c8f3565_o_d.jpg"&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8357773" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-08-35-77-73/FdsUsageGuide.docx" length="393197" type="application/vnd.openxmlformats-officedocument.word" /><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category></item><item><title>Simulated Covariance for .NET Generics</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/04/02/simulatedcovariance.aspx</link><pubDate>Wed, 02 Apr 2008 18:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8348605</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>20</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8348605</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/04/02/simulatedcovariance.aspx#comments</comments><description>&lt;H2 style="MARGIN: 12pt 0in 6pt 0.4in; mso-list: none"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;&lt;FONT color=#943634 size=3&gt;I&amp;nbsp;just&amp;nbsp;wrote this pattern,&amp;nbsp;but I am not sure if I should add it&amp;nbsp;officially to the Framework Design Guidelines. It seems like a bit of a corner case scenario, though I do get questions about it from time to time. Anyway, let me know what you think.&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Different constructed types don’t have a common root type. For example, there would not be a common representation of IEnumerable&amp;lt;string&amp;gt; and IEnumerable&amp;lt;object&amp;gt; if not for a pattern implemented by IEnumerable&amp;lt;T&amp;gt; called &lt;I style="mso-bidi-font-style: normal"&gt;Simulated Covariance&lt;/I&gt;. This post describes the details of the pattern.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Generics is a very powerful type system feature added to the .NET Framework 2.0. It allows creation of so called parameterized types. For example, List&amp;lt;T&amp;gt; is such a type and it represents a list of objects of type T. The T is specified at the time when the instance of the list is created. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;List&amp;lt;string&amp;gt; names = new List&amp;lt;string&amp;gt;();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;names.Add(“John Smith”);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;names.Add(“Mary Johnson”);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Such Generic data structures have many benefits over their non-Generic counterparts. But they also have some, sometimes surprising, limitations. For example, some users expect that a List&amp;lt;string&amp;gt; can be cast to List&amp;lt;object&amp;gt;, just as a String can be cast to Object. But unfortunately, the following code won’t even compile.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;List&amp;lt;string&amp;gt; names = new List&amp;lt;string&amp;gt;();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;List&amp;lt;object&amp;gt; objects = names; // this won’t compile&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;There is a very good reason for this limitation, and that is to allow for full strong typing. For example, if you could cast List&amp;lt;string&amp;gt; to a List&amp;lt;object&amp;gt; the following incorrect code would compile, but the program would fail at runtime.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;static void Main(){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;List&amp;lt;string&amp;gt; names = new List&amp;lt;string&amp;gt;();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// this of course does not compile, but if it did&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// the whole program would compile, but would be incorrect as it &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// attempts to add arbitrary objects to a list of strings.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;AddObjects((List&amp;lt;object&amp;gt;)names); &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;string name = names[0]; // how could this work? &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// this would (and does) compile just fine.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;static void AddObjects(List&amp;lt;object&amp;gt; list){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;list.Add(new object()); // it’s a list of strings, really. Should we throw?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;list.Add(new Button());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;} &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Unfortunately this limitation can also be undesired in some scenarios. For example, there is nothing wrong with casting a List&amp;lt;string&amp;gt; to IEnumerable&amp;lt;object&amp;gt;, like in the following example.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;List&amp;lt;string&amp;gt; names = new List&amp;lt;string&amp;gt;();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;IEnumerable&amp;lt;object&amp;gt; objects = names; // this won’t compile&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;foreach(object obj in objects){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Console.WriteLine(obj.ToString());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;In general, having a way to represent “any list” (or in general “any instance of this generic type”) is very useful. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// what type should ??? be?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;static void PrintItems(??? anyList){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;foreach(object obj in anyList){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Console.WriteLine(obj.ToString());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;Unfortunately, unless List&amp;lt;T&amp;gt; implemented a pattern that will be described in a moment, the only common representation of all List&amp;lt;T&amp;gt; instances would be System.Object. But System.Object is too limiting and would not allow PrintItems method to enumerate items in the list.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;The reason that casting to IEnumerable&amp;lt;object&amp;gt; is just fine, but casting to List&amp;lt;object&amp;gt; can cause all sorts of problems is that in case of IEnumerable&amp;lt;object&amp;gt;, the object appears only in the output position (the return type of GetEnumerator is IEnumerator&amp;lt;object&amp;gt;). In case of List&amp;lt;object&amp;gt;, the object represents both output and input types. For example, object is the type of the input to the Add method. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// T does not appear as input to any members or dependencies of this interface&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public interface IEnumerable&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;IEnumerator&amp;lt;T&amp;gt; GetEnumerator(); &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="mso-tab-count: 2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public interface IEnumerator&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;T Current { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;bool MoveNext();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;} &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;// T does appear as input to members of List&amp;lt;T&amp;gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class List&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public void Add(T item); // T is an input here&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T this[int index]{&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;get; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;set; // T is actually an input here&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;In other words, we say that in IEnumerable&amp;lt;T&amp;gt;, the T is at covariant positions (outputs). In List&amp;lt;T&amp;gt;, the T is at covariant and contravariant (inputs) positions. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;To solve the problem of not having a common type representing the root of all constructions of a generic type, you can implement what’s called the &lt;I style="mso-bidi-font-style: normal"&gt;Simulated Covariance Pattern&lt;/I&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Given a generic type (class or interface) and its dependencies&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Foo&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property1 { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property2 { set; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property3 { get; set; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public void Method1(T arg1);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public T Method2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Method3(T arg);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public Type1&amp;lt;T&amp;gt; GetMethod1(); &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public Type2&amp;lt;T&amp;gt; GetMethod2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Type1&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Type2&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property { get; set; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Create a new interface (&lt;I style="mso-bidi-font-style: normal"&gt;Root Type&lt;/I&gt;) with all members containing Ts at contravariant positions removed. In addition, feel free to remove all members that might not make sense in the context of the trimmed down type.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public interface IFoo&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;T Property1 { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;T Property3 { get; } // setter removed&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;T Method2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Type1&amp;lt;T&amp;gt; GetMethod1();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;IType2&amp;lt;T&amp;gt; GetMethod2(); // note that the return type changed&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public interface IType2&amp;lt;T&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;T Property { get; } // setter removed&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;The generic type should then implement the interface explicitly and “add back” the strongly typed members (using T instead of object) to its public API surface.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Foo&amp;lt;T&amp;gt; : IFoo&amp;lt;object&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property1 { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property2 { set; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property3 { get; set;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public void Method1(T arg1);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Method2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Method3(T arg);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public Type1&amp;lt;T&amp;gt; GetMethod1();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public Type2&amp;lt;T&amp;gt; GetMethod2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;object IFoo&amp;lt;object&amp;gt;.Property1 { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;object IFoo&amp;lt;object&amp;gt;.Property3 { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;object IFoo&amp;lt;object&amp;gt;.Method2() { return null; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Type1&amp;lt;object&amp;gt; IFoo&amp;lt;object&amp;gt;.GetMethod1();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;IType2&amp;lt;object&amp;gt; IFoo&amp;lt;object&amp;gt;.GetMethod2();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Type2&amp;lt;T&amp;gt; : IType2&amp;lt;object&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property { get; set; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;object IType2&amp;lt;object&amp;gt;.Property { get; }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Now, all constructed instantiation of Foo&amp;lt;T&amp;gt; have a common root type IFoo&amp;lt;object&amp;gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;var foos = new List&amp;lt;IFoo&amp;lt;object&amp;gt;&amp;gt;();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;foos.Add(new Foo&amp;lt;int&amp;gt;());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;foos.Add(new Foo&amp;lt;string&amp;gt;());&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;…&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;foreach(IFoo&amp;lt;object&amp;gt; foo in foos){&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Console.WriteLine(foo.Property1);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Console.WriteLine(foo.GetMethod2().Property);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=checkbox&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #00b050; FONT-FAMILY: Wingdings; mso-bidi-font-family: ZapfDingbats; mso-ascii-font-family: ZapfDingbats; mso-hansi-font-family: ZapfDingbats; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-bidi-font-size: 16.0pt"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;þ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: MetaBlack-Roman"&gt;CONSIDER&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt; using the &lt;I style="mso-bidi-font-style: normal"&gt;Simulated Covariance Pattern&lt;/I&gt;, if there is a need to have a representation for all instantiations of a generic type&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;The pattern should not be used frivolously as it results in additional types in the library and can makes the existing types more complex.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face=Verdana&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=checkbox&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #00b050; FONT-FAMILY: Wingdings; mso-bidi-font-family: ZapfDingbats; mso-ascii-font-family: ZapfDingbats; mso-hansi-font-family: ZapfDingbats; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-bidi-font-size: 16.0pt"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;þ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: MetaBlack-Roman"&gt;DO&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt; ensure that the implementation of the root’s members is equivalent to the implementation of the corresponding generic type members. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;&lt;FONT face=Verdana&gt;There should not be an observable difference between calling a member on the root type and calling the corresponding member on the generic type. In many cases the members of the root are implemented by calling members on the generic type.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;public class Foo&amp;lt;T&amp;gt; : IFoo&amp;lt;object&amp;gt; {&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;public T Property3 { get { ... } set { ... } }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;object IFoo&amp;lt;object&amp;gt;.Property3 { get { return Property3; } }&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;…&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 0pt 0.25in"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;o:p&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=checkbox&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #00b050; FONT-FAMILY: Wingdings; mso-bidi-font-family: ZapfDingbats; mso-ascii-font-family: ZapfDingbats; mso-hansi-font-family: ZapfDingbats; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-bidi-font-size: 16.0pt"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;þ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN class=DO1&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: MetaBlack-Roman"&gt;CONSIDER&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt; using an abstract class instead of an interface to represent the root. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="mso-bookmark: _Toc33351794"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;This might sometimes be a better option as interfaces are more difficult to evolve (see section X). On the other hand there are some problem with using abstract classes for the root. Abstract class members cannot be implemented explicitly and the subtypes need to use the &lt;I style="mso-bidi-font-style: normal"&gt;new&lt;/I&gt; modifier. This makes it tricky to implement the root’s members by delegating to the generic type members. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;&lt;o:p&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 0in 0in 3pt 12.25pt; TEXT-INDENT: -12.25pt"&gt;&lt;SPAN class=checkbox&gt;&lt;SPAN style="FONT-SIZE: 11pt; COLOR: #00b050; FONT-FAMILY: Wingdings; mso-bidi-font-family: ZapfDingbats; mso-ascii-font-family: ZapfDingbats; mso-hansi-font-family: ZapfDingbats; mso-char-type: symbol; mso-symbol-font-family: Wingdings; mso-bidi-font-size: 16.0pt"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;þ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="FONT-SIZE: 11pt"&gt; &lt;/SPAN&gt;&lt;SPAN class=DO1&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;U&gt;&lt;SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: MetaBlack-Roman"&gt;CONSIDER&lt;/SPAN&gt;&lt;/U&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-bidi-language: HE"&gt; using a non-generic root type, if such type is already available. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;&lt;FONT face=Verdana&gt;For example, List&amp;lt;T&amp;gt; implements IEnumerable for the purpose of simulating covariance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in 3pt 12.25pt"&gt;&lt;SPAN style="mso-bidi-language: HE"&gt;&lt;o:p&gt;&lt;FONT face=Verdana&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8348605" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/System-Collections/">System.Collections</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item><item><title>Job Openings on the .NET Framework Core Team</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/03/14/8209671.aspx</link><pubDate>Fri, 14 Mar 2008 22:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8209671</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>15</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8209671</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/03/14/8209671.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;We have been incubating ideas about building a simple extensibility framework for some time. Now, as plans for the next version of the .NET Framework crystallize a bit more, we decided to productize the project. As a result, we have opened a job position (and most probably will be opening more) on the .NET Framework team. If you are interested, please see details &lt;/FONT&gt;&lt;A href="http://members.microsoft.com/careers/search/details.aspx?JobID=508DA780-65F1-480C-B831-F72A0FAA91E9&amp;amp;start=1&amp;amp;interval=10&amp;amp;SortCol=DatePosted"&gt;&lt;FONT face=Calibri size=3&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; and send me an email at “kcwalina at microsoft.com.”&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;So, what is this extensibility framework? Initially, it will be a low level core .NET Framework feature to make it easy for applications to expose extensibility points and consume extensions. Think about what for example FxCop has to do define rule contracts and load rule implemented by the community&lt;B&gt;&lt;I&gt;&lt;SPAN style="COLOR: #943634"&gt;. &lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;These are the basics, and we can talk about the broader and longer term vision when you come to Redmond for an interview :-)&lt;B&gt;&lt;I&gt;&lt;SPAN style="COLOR: #943634"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #943634"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;This is a technical Program Manager position&lt;B&gt;&lt;I&gt; &lt;/I&gt;&lt;/B&gt;in Redmond, WA, and it’s basically exactly the job I did when I joined Microsoft. Besides working on the Framework features, all Program Managers on the core team have opportunities to work on API design and architecture projects.&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8209671" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category></item><item><title>LINQ Design Guidelines</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/03/12/8178467.aspx</link><pubDate>Thu, 13 Mar 2008 07:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8178467</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=8178467</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/03/12/8178467.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Mircea, a program manager on my team, has worked on development of &lt;A class="" href="http://blogs.msdn.com/mirceat/archive/2008/03/13/linq-framework-design-guidelines.aspx" mce_href="http://blogs.msdn.com/mirceat/archive/2008/03/13/linq-framework-design-guidelines.aspx"&gt;design guidelines for LINQ related features&lt;/A&gt;. The guidelines were reviewed internally and are now available on Mitch’s blog. We might still iterate on them a bit, but quite soon I plan to incorporate them into Framework Design Guidelines manuscript, so if you have feedback, it’s time to send it our way! :-)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8178467" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category></item><item><title>Video Recording of "Framework Engineering: Architecting, Designing, and Developing Reusable Libraries"</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/01/08/frameworkengineering.aspx</link><pubDate>Tue, 08 Jan 2008 21:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7031258</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=7031258</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/01/08/frameworkengineering.aspx#comments</comments><description>&lt;SPAN style="COLOR: #0070c0; FONT-FAMILY: 'Arial Narrow','sans-serif'"&gt;&lt;FONT size=3&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;/SPAN&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;FONT color=#000000&gt;I just&amp;nbsp;received&amp;nbsp;a video recording of a talk I did at the last TechEd. You can find the abstract below, and the WMV file can be downloaded from &lt;/FONT&gt;&lt;A href="http://download.microsoft.com/download/b/d/1/bd133733-9647-445f-bc06-238ae9c0dd48/FrameworkEngineering.wmv" mce_href="http://download.microsoft.com/download/b/d/1/bd133733-9647-445f-bc06-238ae9c0dd48/FrameworkEngineering.wmv"&gt;here&lt;/A&gt;&lt;FONT color=#000000&gt;. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;FONT color=#000000&gt;Hope you find it useful.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;FONT color=#000000&gt;[UPDATE: I attched the slides in xps format. The ppt file is 10x larger]&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 12pt; COLOR: #0070c0; FONT-FAMILY: 'Arial Narrow','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;EM&gt;Framework Engineering: Architecting, Designing, and Developing Reusable Libraries&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt; LINE-HEIGHT: normal"&gt;&lt;SPAN style="FONT-SIZE: 12pt; COLOR: #0070c0; FONT-FAMILY: 'Arial Narrow','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;EM&gt;This session covers the main aspects of reusable library design: API design, architecture, and general framework engineering processes. Well-designed APIs are critical to the success of reusable libraries, but there are other aspects of framework development that are equally important, yet not widely covered in literature. Organizations creating reusable libraries often struggle with the process of managing dependencies, compatibility, and other design processes so critical to the success of modern frameworks. Come to this session and learn about how Microsoft creates its frameworks. The session is based on experiences from the development of the .NET Framework and Silverlight, and will cover processes Microsoft uses in the development of managed frameworks.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7031258" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-07-03-12-58/FrameworkEngineering.xps" length="1315748" type="application/vnd.ms-xpsdocument" /><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category></item><item><title>Framework Design Guidelines 2nd Edition</title><link>http://blogs.msdn.com/b/kcwalina/archive/2008/01/03/frameworkdesignguidelines2ndedition.aspx</link><pubDate>Fri, 04 Jan 2008 01:39:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6972782</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>35</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=6972782</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2008/01/03/frameworkdesignguidelines2ndedition.aspx#comments</comments><description>&lt;P&gt;My blog was &lt;SPAN lang=EN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;relatively &lt;/SPAN&gt;silent for several weeks. First, I was traveling to Europe for the TechEd, then was busy at work, then the holiday break. It's time to go back to more regular posting. &lt;/P&gt;
&lt;P&gt;I will start with an announcement (or at least a more formal and broader announcement): after my TechEd presentation, the first question I got from the audience was whether we are working on&amp;nbsp;a new edition of the Framework Design Guidelines. The answer is "yes", which I am super excited about. Right before the conference, we signed formal documents with the publisher and&amp;nbsp;started wortking on the book. It's going to cover the new&amp;nbsp;features in the .NET Framework 3.0, 3.5, and new advances in languages (e.g. LINQ) that are &lt;SPAN lang=EN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;relevant &lt;/SPAN&gt;to&amp;nbsp;Framework design.&amp;nbsp;BTW, I would appreciate feedback on what specifically you would like to get covered or clarified.&lt;/P&gt;
&lt;P&gt;We are shooting to have the book ready around the end of 2008, but the publisher already sent me a draft of the cover art:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://farm3.static.flickr.com/2117/2178655346_e7a2e0f59e_d.jpg" mce_src="http://farm3.static.flickr.com/2117/2178655346_e7a2e0f59e_d.jpg"&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6972782" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/Design+Guidelines/">Design Guidelines</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item><item><title>What Do Swimmers Have to Say About Framework Design?</title><link>http://blogs.msdn.com/b/kcwalina/archive/2007/10/04/techedbarcelona.aspx</link><pubDate>Fri, 05 Oct 2007 03:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5280111</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=5280111</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2007/10/04/techedbarcelona.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;I am starting to feel pressure to finish up slides for my presentation at the upcoming TechEd in Barcelona. I will be talking about framework architecture and design. Here is the abstract I took from the &lt;/FONT&gt;&lt;A href="http://www.mseventseurope.com/teched/07/developers/content/Pages/Default.aspx"&gt;&lt;FONT face=Calibri size=3&gt;conference’s site&lt;/FONT&gt;&lt;/A&gt;:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="COLOR: #0070c0; FONT-FAMILY: 'Arial Narrow','sans-serif'"&gt;&lt;FONT size=3&gt;WIN304 Framework Engineering: Architecting, Designing, and Developing Reusable Libraries&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="COLOR: #0070c0; FONT-FAMILY: 'Arial Narrow','sans-serif'"&gt;&lt;FONT size=3&gt;This session covers the main aspects of reusable library design: API design, architecture, and general framework engineering processes. Well-designed APIs are critical to the success of reusable libraries, but there are other aspects of framework development that are equally important, yet not widely covered in literature. Organizations creating reusable libraries often struggle with the process of managing dependencies, compatibility, and other design processes so critical to the success of modern frameworks. Come to this session and learn about how Microsoft creates its frameworks. The session is based on experiences from the development of the .NET Framework and Silverlight, and will cover processes Microsoft uses in the development of managed frameworks.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;I am super excited about the talk, which I want to make into a continuation to the API design pre-con I did with &lt;A class="" href="http://blogs.msdn.com/brada" mce_href="http://blogs.msdn.com/brada"&gt;Brad Abrams&lt;/A&gt; at the last PDC (BTW, the same content is available &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/kcwalina/archive/2007/03/29/1989896.aspx"&gt;&lt;FONT face=Calibri size=3&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;). The PDC talk was about designing the API surface, but there is so much more to framework design!&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;I am also excited coming back to the wonderful city of Barcelona. Last time I was there, believe it or not, I was on the Polish swimming team competing in the Olympics (&lt;/FONT&gt;&lt;A href="http://en.wikipedia.org/wiki/Swimming_at_the_1992_Summer_Olympics_-_Men%27s_4_x_200_metre_freestyle_relay"&gt;&lt;FONT face=Calibri size=3&gt;see #13&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt;). I hope this trip will bring back some memories from the other and completely different “career” I had in the past.&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5280111" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category></item><item><title>FxCop Rule for Multi-Targeting</title><link>http://blogs.msdn.com/b/kcwalina/archive/2007/10/02/multi_2D00_targetingandfxcop.aspx</link><pubDate>Wed, 03 Oct 2007 02:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5249710</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>22</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=5249710</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2007/10/02/multi_2D00_targetingandfxcop.aspx#comments</comments><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Two months ago, Scott blogged about &lt;/FONT&gt;&lt;A href="http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx"&gt;&lt;FONT face=Calibri size=3&gt;the multi-targeting support in Visual Studio 2008&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;. I worked on this feature in the planning phase (read “long time ago”), and so I am quite thrilled to see it finally in the hands of developers. Especially, that several years ago I remember our small working group sitting in a room and wondering whether such feature was even possible. The complexities of implementing it in a large project like the Visual Studio seemed quite daunting. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;The thing that made implementing multi-targeting in one release possible was the concept of Red and Green bits. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;You can read about the concept &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/somasegar/archive/2006/05/18/601354.aspx"&gt;&lt;FONT face=Calibri size=3&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;, &lt;A class="" href="http://www.danielmoth.com/Blog/2007/06/net-framework-35.html" mce_href="http://www.danielmoth.com/Blog/2007/06/net-framework-35.html"&gt;here&lt;/A&gt;, and&amp;nbsp;&lt;A class="" href="http://blogs.msdn.com/jasonz/archive/2006/05/21/603544.aspx" mce_href="http://blogs.msdn.com/jasonz/archive/2006/05/21/603544.aspx"&gt;here&lt;/A&gt;, but quickly: red bits are Framework assemblies that existed in the .NET Framework 2.0 and were serviced in versions 3.0 and 3.5. Green bits are assemblies that were added either in the version 3.0 or 3.5. The servicing changes in Red bit APIs are limited (after all it is servicing) to a very small number of API additions and bug fixes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;We leveraged (and influenced) the decision to limit the number of changes to existing assemblies to drastically simplify the requirements for the multi-targeting system. That is, we made an assumption that the majority of differences between the Framework versions (targets) are on assembly boundaries.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;But now I have to confess, there are some limitations in this design that we accepted when we made the original simplifying assumption. There is a very limited number of APIs being added to the Red assemblies and the multi-targeting system is currently not able to detect these. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;For example, if you set the target to the .NET Framework 2.0 and read the newly-added (albeit obscure) property GCSettings.LatencyMode the program will compile just fine but then fail to run on the .NET Framework 2.0 RTM. The reason is that the property was added to an existing (Red) class GCSettings, not to a new class in a new assembly. Despite that the number of such additional APIs in Red bits is very small (and that we recommend that you still test your programs on all targeted platforms), this can be quite annoying. And so feeling a bit responsible for this (and trying to promote FxCop &lt;/FONT&gt;&lt;SPAN style="FONT-FAMILY: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;&lt;SPAN style="mso-char-type: symbol; mso-symbol-font-family: Wingdings"&gt;J&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri&gt;), I wrote an FxCop rule that can analyze IL of an assembly targeted at Framework 2.0 and warn you about all calls to members that are not present in 2.0 RTM. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;Here is how it works: The test program below uses new LatencyMode enum and calls a new GcSettings.LatencyMode property. As I mentioned above, these APIs don’t exist in .NET Framework 2.0 RTM. Even if I built this project with the multi-targeting target set to Framework 2.0, the system would not complain about calling these APIs. But, as you can see in the error list, the FxCop analysis engine can deal even with this difficult to detect problem. You can think of the rule as a very smart (post) compiler-step.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;SPAN style="mso-no-proof: yes"&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;IMG src="http://farm2.static.flickr.com/1250/1473897382_374fc28d10_o_d.jpg" mce_src="http://farm2.static.flickr.com/1250/1473897382_374fc28d10_o_d.jpg"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;A&amp;nbsp;sample project with the rule is attached to this post&lt;/FONT&gt;&lt;FONT face=Calibri size=3&gt;. I provide it without any guarantees, as is, and in fact I am sure it has many bugs and problems. When I find time, I will work on it more to polish it a bit but I don't promise (i.e. treat it as a sample).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT face=Calibri size=3&gt;BTW, to install the rule, just build it and drop it to the FxCop rules directory. On my machine it is at C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\Rules. In addition you have to go to Project settings of the project you want to analyze and turn on FxCop analysis (the “Code Analysis” tab in the project properties). Lastly, you can either rebuild or right click on a project and choose “Run Code Analysis”. I hope it’s helpful.&lt;/FONT&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5249710" width="1" height="1"&gt;</description><enclosure url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-05-24-97-10/MultitargettingRules.zip" length="42235" type="application/x-zip-compressed" /><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+Programming/">General Programming</category></item><item><title>China Trip</title><link>http://blogs.msdn.com/b/kcwalina/archive/2007/10/02/5246364.aspx</link><pubDate>Tue, 02 Oct 2007 21:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5246364</guid><dc:creator>Krzysztof Cwalina</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/kcwalina/rsscomments.aspx?WeblogPostID=5246364</wfw:commentRss><comments>http://blogs.msdn.com/b/kcwalina/archive/2007/10/02/5246364.aspx#comments</comments><description>&lt;FONT face=Calibri&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;Sorry for not blogging for such a long time. First I was on a combined business/vacations trip to China and when I came back, I got involved in some intensive planning for the future releases of the platform. I will try to post something about software in the next couple of days.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt"&gt;&lt;FONT size=3&gt;The trip to China was great. First day I taught a class on API design at the Microsoft center in Beijing and then my wife and I stayed for several days doing sightseeing, drinking the best &lt;/FONT&gt;&lt;A href="http://www.flickr.com/photos/krzysc/1283290852/in/set-72157601679531990/" mce_href="http://www.flickr.com/photos/krzysc/1283290852/in/set-72157601679531990/"&gt;&lt;FONT size=3&gt;tea&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt; ever, and indulging ourselves in great &lt;/FONT&gt;&lt;A href="http://www.flickr.com/photos/krzysc/1283483672/in/set-72157601679531990/" mce_href="http://www.flickr.com/photos/krzysc/1283483672/in/set-72157601679531990/"&gt;&lt;FONT size=3&gt;food&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt; (complete photo documentary is &lt;/FONT&gt;&lt;A href="http://www.flickr.com/photos/krzysc/sets/72157601679531990/show/" mce_href="http://www.flickr.com/photos/krzysc/sets/72157601679531990/show/"&gt;&lt;FONT color=#0000ff size=3&gt;here&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;). &lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 10pt" mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5246364" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/kcwalina/archive/tags/General+API+Design/">General API Design</category></item></channel></rss>