<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/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>Derik Whittaker - All Comments</title><link>http://devlicio.us/blogs/derik_whittaker/default.aspx</link><description>Thoughts on Software Development, .Net, OOP, Design Patterns and all things cool
&lt;br /&gt;&lt;br /&gt;
&lt;div class="altnetgeekcode"&gt;&lt;a href="http://www.hanselman.com/altnetgeekcode/default.aspx?q=IOC(SM):MOC(RM):TDD(NU):SCC(Svn):ORM(L2S):XPP(-):XPP(+):DDD(T+)"&gt;IOC(SM):MOC(RM):TDD(NU):SCC(Svn):ORM(L2S):XPP(-):XPP(+):DDD(T+)&lt;/a&gt;&lt;/div&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Testowanie jednostkowe metody prywatnej</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2007/04/09/internalsvisibleto-testing-internal-methods-in-net-2-0.aspx#55952</link><pubDate>Mon, 15 Mar 2010 00:14:29 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55952</guid><dc:creator>The Silence Of The LaMs</dc:creator><description>&lt;p&gt;Testowanie jednostkowe metody prywatnej&lt;/p&gt;
&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55952" width="1" height="1"&gt;</description></item><item><title>re: Sharing Code Analysis files between projects in Visual Studio 2010</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/03/10/sharing-code-analysis-files-between-projects-in-visual-studio-2010.aspx#55879</link><pubDate>Thu, 11 Mar 2010 23:57:16 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55879</guid><dc:creator>Mufasa</dc:creator><description>&lt;p&gt;You may want to review the last paragraph before you started in on the steps. Looks like you rewrote that sentence a few times, and left bits and pieces of old versions in there. It doesn&amp;#39;t make sense now. &amp;nbsp;:(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55879" width="1" height="1"&gt;</description></item><item><title>re: Providing Metadata to you MEF exports</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/03/06/providing-metadata-to-you-mef-exports.aspx#55755</link><pubDate>Mon, 08 Mar 2010 16:03:44 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55755</guid><dc:creator>fkelly3467</dc:creator><description>&lt;p&gt;Great post sir. Thanks for this it was very helpful&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55755" width="1" height="1"&gt;</description></item><item><title>re: Providing Metadata to you MEF exports</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/03/06/providing-metadata-to-you-mef-exports.aspx#55724</link><pubDate>Sun, 07 Mar 2010 19:53:57 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55724</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;As an example of when you would want to use AllowMultiple = true, check this out.&lt;/p&gt;
&lt;p&gt;[MetadataAttribute]&lt;/p&gt;
&lt;p&gt;[AttributeUsages(AttributeTargets.Class, AllowMultiple=true)]&lt;/p&gt;
&lt;p&gt;public class CategoryMetadata : Attribute {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;public string Category {get;set;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The importer for this export would need to have an array, otherwise the exporter would not be matched as we use type as part of the matching and array of string is different than string.&lt;/p&gt;
&lt;p&gt;public interface ICategoryView {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public string[] Category {get;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55724" width="1" height="1"&gt;</description></item><item><title>re: Providing Metadata to you MEF exports</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/03/06/providing-metadata-to-you-mef-exports.aspx#55723</link><pubDate>Sun, 07 Mar 2010 19:48:44 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55723</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;Nice post, and Yes I here :-)&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t set AllowMultiple to false, MEF will assume there can be multiple metadata values for each key. As a result it will make the metadata values arrays which will be incompatible with your metadata view unless it&amp;#39;s values are also arrays.&lt;/p&gt;
&lt;p&gt;There are cases where having multiple values makes sense such as if you have multiple categories. In general in these cases you would probably have a free-form metadata attribute (decorated with MetadataAttribute) which is not an export. This would be annotated on top of an existing export.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55723" width="1" height="1"&gt;</description></item><item><title>Определение метаданных для экспорта в MEF</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/03/06/providing-metadata-to-you-mef-exports.aspx#55721</link><pubDate>Sun, 07 Mar 2010 17:59:22 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55721</guid><dc:creator>progg.ru</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from progg.ru&lt;/p&gt;
&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55721" width="1" height="1"&gt;</description></item><item><title>Providing Metadata to you MEF exports</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2009/10/27/simple-kick-start-example-using-mef-preview-8.aspx#55690</link><pubDate>Sun, 07 Mar 2010 01:07:57 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55690</guid><dc:creator>Derik Whittaker</dc:creator><description>&lt;p&gt;Many months ago I created a post on how to get started with MEF .&amp;#160; Ever since then I have been meaning&lt;/p&gt;
&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55690" width="1" height="1"&gt;</description></item><item><title>re: Issues Compiling VS2010 solutions (with web projects) from Nant</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/27/issues-compiling-vs2010-solutions-with-web-projects-from-nant.aspx#55625</link><pubDate>Wed, 03 Mar 2010 21:18:32 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55625</guid><dc:creator>Starkey</dc:creator><description>&lt;p&gt;I had the same issue. I had to alter the MSbuild WebApplication file located: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications and remove these entries.&lt;/p&gt;
&lt;p&gt;Retries=&amp;quot;$(CopyRetryCount)&amp;quot;&lt;/p&gt;
&lt;p&gt;and &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RetryDelayMilliseconds=&amp;quot;$(CopyRetryDelayMilliseconds)&amp;quot;&lt;/p&gt;
&lt;p&gt;Once both of these were removed (in 13 places) everything worked fine. Hope it helps you too.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55625" width="1" height="1"&gt;</description></item><item><title>re: MEF and decrypting LoaderExceptions</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/01/31/mef-and-decrypting-loaderexceptions.aspx#55617</link><pubDate>Wed, 03 Mar 2010 15:43:15 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55617</guid><dc:creator>Joris</dc:creator><description>&lt;p&gt;You saved my day, thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55617" width="1" height="1"&gt;</description></item><item><title>Converting a classic ASP site to ASP.NET MVC Part III - Links and avoiding violating the DRY principle</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2008/03/06/link-building-101-with-asp-net-mvc.aspx#55610</link><pubDate>Tue, 02 Mar 2010 22:03:31 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55610</guid><dc:creator>Not Going Dark</dc:creator><description>&lt;p&gt;Converting a classic ASP site to ASP.NET MVC Part III - Links and avoiding violating the DRY principle&lt;/p&gt;
&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55610" width="1" height="1"&gt;</description></item><item><title>re: Noisy code does not equal clean code</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/25/noisy-code-does-not-equal-clean-code.aspx#55601</link><pubDate>Tue, 02 Mar 2010 13:55:08 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55601</guid><dc:creator>Derik Whittaker</dc:creator><description>&lt;p&gt;@Matt,&lt;/p&gt;
&lt;p&gt;Oh I know i could submit patch, but not sure my &amp;#39;concepts&amp;#39; are what everyone is looking for.&lt;/p&gt;
&lt;p&gt;And again using Automapper in this post was ONLY to talk about noisy code, not a reflection on the library.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55601" width="1" height="1"&gt;</description></item><item><title>re: Noisy code does not equal clean code</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/25/noisy-code-does-not-equal-clean-code.aspx#55600</link><pubDate>Tue, 02 Mar 2010 13:51:35 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55600</guid><dc:creator>Matt Hinze</dc:creator><description>&lt;p&gt;Also, and I don&amp;#39;t know what they do now, but some dynamic proxy libraries, at one point, did not return the proxied type from GetType(), but rather the proxy type.. I think that&amp;#39;s why the explicit call is there.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55600" width="1" height="1"&gt;</description></item><item><title>re: Noisy code does not equal clean code</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/25/noisy-code-does-not-equal-clean-code.aspx#55599</link><pubDate>Tue, 02 Mar 2010 13:44:03 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55599</guid><dc:creator>Matt Hinze</dc:creator><description>&lt;p&gt;You can always take a dependency on IMappingEngine, or decorate it to add the behavior you want. &amp;nbsp;Also, AutoMapper is on github and is accepting contributions.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55599" width="1" height="1"&gt;</description></item><item><title>re: Noisy code does not equal clean code</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/25/noisy-code-does-not-equal-clean-code.aspx#55598</link><pubDate>Tue, 02 Mar 2010 11:16:36 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55598</guid><dc:creator>irislogic</dc:creator><description>&lt;p&gt;Noisy codes seriously bother me! Makes me want to go and change it for them, but of course I need to get paid. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55598" width="1" height="1"&gt;</description></item><item><title>re: Noisy code does not equal clean code</title><link>http://devlicio.us/blogs/derik_whittaker/archive/2010/02/25/noisy-code-does-not-equal-clean-code.aspx#55590</link><pubDate>Tue, 02 Mar 2010 06:30:31 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:55590</guid><dc:creator>Hadi Hariri</dc:creator><description>&lt;p&gt;@Eber, @Alberto&lt;/p&gt;
&lt;p&gt;RhinoMocks adds an extension method to object. It would only cause chaos, if you were to call it that, if you were to use every library in the world in your project that does this. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=55590" width="1" height="1"&gt;</description></item></channel></rss>