<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: How to use T4 to generate Decorator classes</title>
	<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/</link>
	<description>Me.Write(code)</description>
	<pubDate>Sat, 13 Mar 2010 23:37:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Dave</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2915</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 25 Feb 2010 19:53:08 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2915</guid>
		<description>I using your example to generate DTO objects based on a Model assembly.  I loop the Types for a given Namespace (from assembly.GetNamespaceList()) and then loop Members of NodeType.Property for the given TypeNode of NodeType.Class.  It appears the calling Property.GetPropertyInfo() is locking the assembly with reflection.  I don't see how (largely do to a lack of documentation) on how to get the info I need with a PropertyInfo object.  You?</description>
		<content:encoded><![CDATA[<p>I using your example to generate DTO objects based on a Model assembly.  I loop the Types for a given Namespace (from assembly.GetNamespaceList()) and then loop Members of NodeType.Property for the given TypeNode of NodeType.Class.  It appears the calling Property.GetPropertyInfo() is locking the assembly with reflection.  I don&#8217;t see how (largely do to a lack of documentation) on how to get the info I need with a PropertyInfo object.  You?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hexadecimal &#187; Writing rock solid code with Code Contracts</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2895</link>
		<dc:creator>hexadecimal &#187; Writing rock solid code with Code Contracts</dc:creator>
		<pubDate>Fri, 05 Feb 2010 19:33:17 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2895</guid>
		<description>[...] some tinkering, I managed (with the help of Google and the T4 guru Oleg Sych) create a text template that would take in the shared class library housing the interface and code [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] some tinkering, I managed (with the help of Google and the T4 guru Oleg Sych) create a text template that would take in the shared class library housing the interface and code [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2277</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Fri, 25 Sep 2009 14:36:13 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2277</guid>
		<description>I'm not suggesting redistributing it. If FxCop is installed on your build server, I don't see why you would not be allowed to use the dll.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not suggesting redistributing it. If FxCop is installed on your build server, I don&#8217;t see why you would not be allowed to use the dll.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvain M.</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2276</link>
		<dc:creator>Sylvain M.</dc:creator>
		<pubDate>Fri, 25 Sep 2009 13:06:46 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-2276</guid>
		<description>Hi, 
You talk about using Microsoft.Cci.dll (Microsoft.FxCop.Sdk) which comes with FxCop 1.36. 
Does the license of FxCop allow to use this library out of FxCop context ?
(we may use it for code generation on a build server...)

Thank you per advance for your response, 
Sylvain.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
You talk about using Microsoft.Cci.dll (Microsoft.FxCop.Sdk) which comes with FxCop 1.36.<br />
Does the license of FxCop allow to use this library out of FxCop context ?<br />
(we may use it for code generation on a build server&#8230;)</p>
<p>Thank you per advance for your response,<br />
Sylvain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1269</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Wed, 29 Apr 2009 11:29:30 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1269</guid>
		<description>Yes, you can use CodeModel to read the interface directly from a C# file. &lt;a href="http://www.olegsych.com/2008/07/t4-template-for-generating-sql-view-from-csharp-enumeration" rel="nofollow"&gt;EnumSqlView&lt;/a&gt; is a code generator built using this approach.</description>
		<content:encoded><![CDATA[<p>Yes, you can use CodeModel to read the interface directly from a C# file. <a href="http://www.olegsych.com/2008/07/t4-template-for-generating-sql-view-from-csharp-enumeration" rel="nofollow">EnumSqlView</a> is a code generator built using this approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Joubert</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1267</link>
		<dc:creator>Daniel Joubert</dc:creator>
		<pubDate>Wed, 29 Apr 2009 11:22:18 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1267</guid>
		<description>Thanks for the information you provided.

Is it possible to obtain the intellisense engine to read the properties from an interface?
Your solution requires the assembly to be build which is less desirable</description>
		<content:encoded><![CDATA[<p>Thanks for the information you provided.</p>
<p>Is it possible to obtain the intellisense engine to read the properties from an interface?<br />
Your solution requires the assembly to be build which is less desirable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oleg Sych</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1195</link>
		<dc:creator>Oleg Sych</dc:creator>
		<pubDate>Fri, 13 Mar 2009 16:06:07 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1195</guid>
		<description>I don't remember exactly, only that it didn't match with the GoF definition. It looks good now.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t remember exactly, only that it didn&#8217;t match with the GoF definition. It looks good now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mepfuso</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1194</link>
		<dc:creator>mepfuso</dc:creator>
		<pubDate>Fri, 13 Mar 2009 15:13:01 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1194</guid>
		<description>What is (was) wrong with the description on wikipedia? Just being curious ;-)</description>
		<content:encoded><![CDATA[<p>What is (was) wrong with the description on wikipedia? Just being curious ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Q</title>
		<link>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1181</link>
		<dc:creator>The Q</dc:creator>
		<pubDate>Mon, 09 Mar 2009 01:31:16 +0000</pubDate>
		<guid>http://www.olegsych.com/2007/12/how-to-use-t4-to-generate-decorator-classes/#comment-1181</guid>
		<description>Fantastic example of T4 templates. I have used a modified version of your T4 text template to generate WCF proxy classes which I wrote about on my blog at:
http://www.hexadecimal.se/2009/03/09/WritingRockSolidCodeWithCodeContracts.aspx

Credits and a reference to this blog post is mentioned in my template.</description>
		<content:encoded><![CDATA[<p>Fantastic example of T4 templates. I have used a modified version of your T4 text template to generate WCF proxy classes which I wrote about on my blog at:<br />
<a href="http://www.hexadecimal.se/2009/03/09/WritingRockSolidCodeWithCodeContracts.aspx" rel="nofollow">http://www.hexadecimal.se/2009/03/09/WritingRockSolidCodeWithCodeContracts.aspx</a></p>
<p>Credits and a reference to this blog post is mentioned in my template.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
