<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://community.codesmithtools.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>.netTiers Team Blog - All Comments</title><link>http://community.codesmithtools.com/blogs/nettiers/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: TList&lt;Entity&gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#27574</link><pubDate>Mon, 10 Sep 2007 16:22:14 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:27574</guid><dc:creator>ParisianBull</dc:creator><description>&lt;p&gt;Also, as I see several people doing this, the ForEach method is plainly a bad idea. It provides no extra functionality compared to the foreach STATEMENT, but it DOES add a lot of overhead as now the delegate must be invoked once per item in the list.&lt;/p&gt;
&lt;p&gt;I fail to see how the use of the delegate improves on the straightforward implementation:&lt;/p&gt;
&lt;p&gt;int total = 0;&lt;/p&gt;
&lt;p&gt;foreach (OrderDetails d in order.OrderDetailCollection) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; total += d.Price * d.Quantity;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=27574" width="1" height="1"&gt;</description></item><item><title>re: TList&lt;Entity&gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#27573</link><pubDate>Mon, 10 Sep 2007 16:18:39 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:27573</guid><dc:creator>ParisianBull</dc:creator><description>&lt;p&gt;First and foremost: Thanks for good tips!&lt;/p&gt;
&lt;p&gt;However, I must take issue with one thing. The impression is created that the flexibility offered by Find() and other methods taking delegates could not have been provided in .NET 1.x, but that is plainly not the case. The exact same functionality could be provided by defining an interface with one method in place of the delegate. The main difference is coding convenience, since anonymous methods can be written inline, and since using an interface means one would have to decorate the implementing class appropriately. &lt;/p&gt;
&lt;p&gt;On a side not, I believe it is less efficient to invoke a delegate than calling a method on an interface, although the difference may not matter in many cases. (Reflection is certainly much more expensive anyway.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=27573" width="1" height="1"&gt;</description></item><item><title>Phil Bernie Consulting &amp;raquo; Using Predicate Generic Delegates in VB.Net with .NetTiers</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#26835</link><pubDate>Wed, 01 Aug 2007 13:23:25 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:26835</guid><dc:creator>Phil Bernie Consulting » Using Predicate Generic Delegates in VB.Net with .NetTiers</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Phil Bernie Consulting &amp;amp;raquo; Using Predicate Generic Delegates in VB.Net with .NetTiers&lt;/p&gt;
&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=26835" width="1" height="1"&gt;</description></item><item><title>  TList Net Tiers Tips  at  Densen</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#21193</link><pubDate>Wed, 03 Jan 2007 21:54:40 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:21193</guid><dc:creator>  TList Net Tiers Tips  at  Densen</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://ccgi.densen.plus.com/2006/04/11/tlist-net-tiers-tips/"&gt;http://ccgi.densen.plus.com/2006/04/11/tlist-net-tiers-tips/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=21193" width="1" height="1"&gt;</description></item><item><title>Creating a Strongly Typed Repeater with CodeSmith</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/10/04/Creating-strongly-typed-repeater.aspx#20141</link><pubDate>Wed, 22 Nov 2006 16:08:48 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:20141</guid><dc:creator>Daily News Faq List</dc:creator><description>&lt;p&gt;New article on Creating a Strongly Typed Repeater with CodeSmith from the .netTiers Team Blog.&lt;/p&gt;
&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=20141" width="1" height="1"&gt;</description></item><item><title>re: Creating strongly typed repeater</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/10/04/Creating-strongly-typed-repeater.aspx#18622</link><pubDate>Sun, 08 Oct 2006 17:37:18 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:18622</guid><dc:creator>mcquiggd</dc:creator><description>&lt;p&gt;Funnily enough I wrote something similar, to display content on a website that had lots of different formats (whitelabelling type of approach), that were specificed from a database. Basically I inherited from the Repeater control, and allowed programmatic or declarative setting of certain properties, including which specialised version of ITemplate to use in a given situation.&lt;/p&gt;
&lt;p&gt;Depsite reflection, the performance is still adequate.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=18622" width="1" height="1"&gt;</description></item><item><title>Community Server Daily News for Thursday, October 5, 2006</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/10/04/Creating-strongly-typed-repeater.aspx#18559</link><pubDate>Thu, 05 Oct 2006 20:03:09 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:18559</guid><dc:creator>Community Server Daily News</dc:creator><description>&lt;p&gt;news of the day a grab bag for what's happening in Community Server New Community Server-powered community&lt;/p&gt;
&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=18559" width="1" height="1"&gt;</description></item><item><title>re: TList&amp;lt;Entity&amp;gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#14556</link><pubDate>Tue, 13 Jun 2006 18:57:32 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:14556</guid><dc:creator>The Prisoner</dc:creator><description>removefilter doesn't seem to work&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=14556" width="1" height="1"&gt;</description></item><item><title>re: TList&amp;lt;Entity&amp;gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#11068</link><pubDate>Mon, 13 Mar 2006 19:13:53 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:11068</guid><dc:creator>catsclaw</dc:creator><description>I agree these tips are great!&lt;br&gt;&lt;br&gt;I'd love to see some VB.NET versons of some of this code too. &amp;nbsp;I got a response on one of the forums for the ForEach in vb.net&lt;br&gt;&lt;br&gt;product.ForEach(New Action(Of ContentQuality)(AddressOf product.ForEachSomething))&lt;br&gt;&lt;br&gt;Sub ForEachSomething(ByVal p as Product)&lt;br&gt;'some code&lt;br&gt;End Sub&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=11068" width="1" height="1"&gt;</description></item><item><title>re: TList&amp;lt;Entity&amp;gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#11014</link><pubDate>Mon, 13 Mar 2006 06:25:13 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:11014</guid><dc:creator>BioMash</dc:creator><description>Great! Very helpful&lt;br&gt;&lt;br&gt;Thanks.&lt;br&gt;&lt;br&gt;John.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=11014" width="1" height="1"&gt;</description></item><item><title>re: TList&amp;lt;Entity&amp;gt; (Tips and Tricks)</title><link>http://community.codesmithtools.com/blogs/nettiers/archive/2006/03/09/10861.aspx#10983</link><pubDate>Sun, 12 Mar 2006 14:19:12 GMT</pubDate><guid isPermaLink="false">829aebef-9208-4531-832e-1f916c1e97cb:10983</guid><dc:creator>jamest</dc:creator><description>Good tips!&lt;br&gt;&lt;br&gt;Unfortunately I am trying to apply filtering without success. Could you pelase provide me a VB.NET sample code how I can apply filtering as my application is written in VB.NET.&lt;br&gt;&lt;br&gt;product.ApplyFilter(delegate(Product p) {return p.ProductName == &amp;quot;Sugar&amp;quot; &amp;amp;&amp;amp; p.CategoryId ==5;}));&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;James T.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://community.codesmithtools.com/aggbug.aspx?PostID=10983" width="1" height="1"&gt;</description></item></channel></rss>