<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>sppurgelist Forum Rss Feed</title><link>http://www.codeplex.com/sppurgelist/Thread/List.aspx</link><description>sppurgelist Forum Rss Description</description><item><title>A few questions: </title><link>http://www.codeplex.com/sppurgelist/Thread/View.aspx?ThreadId=7953</link><description>&lt;div class="wikidoc"&gt;
why don't you add this as a feature in my utility pack? &lt;a href="http://www.codeplex.com/spstipsUtilityPack" class="externalLink"&gt;http://www.codeplex.com/spstipsUtilityPack&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;also, you are doing extra loops. why not, instead of using two &amp;quot;foreach&amp;quot; loops, use one &amp;quot;while&amp;quot; loop:&lt;br /&gt; &lt;br /&gt;instead of:&lt;br /&gt; &lt;br /&gt;foreach (SPListItem item in list.Items)&lt;br /&gt;     hItems.Add(item.ID,null);&lt;br /&gt;foreach (int ID in hItems.Keys)&lt;br /&gt;     list.Items.DeleteItemById(ID);&lt;br /&gt; &lt;br /&gt;do :&lt;br /&gt;while(list.Items.Count&amp;gt;0)&lt;br /&gt;     list.Items&lt;a href="http://www.codeplex.com/sppurgelist/Wiki/View.aspx?title=0"&gt;0&lt;/a&gt;.Delete();&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>ishaisagi</author><pubDate>Thu, 08 Mar 2007 01:17:45 GMT</pubDate><guid isPermaLink="false">A few questions:  20070308011745A</guid></item></channel></rss>