<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Krzysztof Cwalina</title><subtitle type="html">Designing Reusable Frameworks</subtitle><id>http://blogs.msdn.com/kcwalina/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/kcwalina/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-04-04T11:10:00Z</updated><entry><title>MEF Primitives Explained</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2009/06/09/MEFPrimitives.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2009/06/09/MEFPrimitives.aspx</id><published>2009-06-09T19:48:00Z</published><updated>2009-06-09T19:48:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9716491" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>Custom Programming Models for MEF (Provider Model Contrib)</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2009/03/03/9457619.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2009/03/03/9457619.aspx</id><published>2009-03-04T01:12:00Z</published><updated>2009-03-04T01:12:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9457619" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>MEF Preview #4 Released</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2009/01/27/MEF4.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2009/01/27/MEF4.aspx</id><published>2009-01-27T19:53:00Z</published><updated>2009-01-27T19:53:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9377747" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>PDC 2008 Talk: Framework Design Guidelines</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/10/30/9024710.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/10/30/9024710.aspx</id><published>2008-10-30T19:00:00Z</published><updated>2008-10-30T19:00:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9024710" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author></entry><entry><title>Framework Design Guidelines Videos</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/10/27/9018557.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/10/27/9018557.aspx</id><published>2008-10-27T20:00:00Z</published><updated>2008-10-27T20:00:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9018557" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author></entry><entry><title>MEF on CodePlex</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/09/05/MEFCodePlex.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/09/05/MEFCodePlex.aspx</id><published>2008-09-06T00:00:00Z</published><updated>2008-09-06T00:00:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8926943" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="General Programming" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+Programming/default.aspx" /><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>Extensible Framework Design Studio Released</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/08/30/8910353.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/08/30/8910353.aspx</id><published>2008-08-30T20:19:00Z</published><updated>2008-08-30T20:19:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8910353" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="General API Design" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+API+Design/default.aspx" /><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>API Design Myth: Exceptions are for "Exceptional Errors"</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/07/17/ExceptionalError.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/07/17/ExceptionalError.aspx</id><published>2008-07-17T23:09:00Z</published><updated>2008-07-17T23:09:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8744883" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="Design Guidelines" scheme="http://blogs.msdn.com/kcwalina/archive/tags/Design+Guidelines/default.aspx" /><category term="General API Design" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+API+Design/default.aspx" /></entry><entry><title>Nullable&lt;T&gt; Usage Guidelines</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/07/16/Nullable.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/07/16/Nullable.aspx</id><published>2008-07-16T23:47:00Z</published><updated>2008-07-16T23:47:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8740209" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="Design Guidelines" scheme="http://blogs.msdn.com/kcwalina/archive/tags/Design+Guidelines/default.aspx" /><category term="General API Design" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+API+Design/default.aspx" /></entry><entry><title>POCO Support for MEF</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/07/07/MEFPOCO.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/07/07/MEFPOCO.aspx</id><published>2008-07-07T21:37:00Z</published><updated>2008-07-07T21:37:00Z</updated><content type="html">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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8703555" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>MEF and System.AddIns</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/06/13/MAFMEF.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/06/13/MAFMEF.aspx</id><published>2008-06-13T19:04:00Z</published><updated>2008-06-13T19:04:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8594649" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>MEF CTP 1 Released</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/06/05/MEFCTP.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/06/05/MEFCTP.aspx</id><published>2008-06-05T23:53:00Z</published><updated>2008-06-05T23:53:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8576275" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>Managed Extensibility Framework</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx</id><published>2008-04-25T19:45:00Z</published><updated>2008-04-25T19:45:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8424359" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="MEF" scheme="http://blogs.msdn.com/kcwalina/archive/tags/MEF/default.aspx" /></entry><entry><title>Framework Design Guidelines Digest v2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/04/09/FDGDigest.aspx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/04/09/FDGDigest.aspx</id><published>2008-04-10T00:19:00Z</published><updated>2008-04-10T00:19:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8373327" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="Design Guidelines" scheme="http://blogs.msdn.com/kcwalina/archive/tags/Design+Guidelines/default.aspx" /><category term="General API Design" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+API+Design/default.aspx" /></entry><entry><title>Framework Design Studio Released</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx" /><link rel="enclosure" type="application/vnd.openxmlformats-officedocument.word" length="393197" href="http://blogs.msdn.com/kcwalina/attachment/8357773.ashx" /><id>http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx</id><published>2008-04-04T21:10:00Z</published><updated>2008-04-04T21:10:00Z</updated><content type="html">&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;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8357773" width="1" height="1"&gt;</content><author><name>kcwalina</name><uri>http://blogs.msdn.com/members/kcwalina.aspx</uri></author><category term="Design Guidelines" scheme="http://blogs.msdn.com/kcwalina/archive/tags/Design+Guidelines/default.aspx" /><category term="General API Design" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+API+Design/default.aspx" /><category term="General Programming" scheme="http://blogs.msdn.com/kcwalina/archive/tags/General+Programming/default.aspx" /></entry></feed>