<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx</link><description>As you know generics were only introduced to the .NET Framework in version 2.0. Originally we had a lot of collections in the System.Collections namespace that can store objects. In version 2.0 we added the System.Collections.Generic namespace to support</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3539014</link><pubDate>Tue, 26 Jun 2007 10:29:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3539014</guid><dc:creator>lehon</dc:creator><description>&lt;p&gt;&amp;quot;Whereas the non-generic collections offered a synchronized wrappers through their APIs — e.g. Hashtable.Synchronized—the non-generics don’t.&amp;quot;&lt;/p&gt;
&lt;p&gt;Shouldn't it be generics instead of non-generics in the end of the sentence above?&lt;/p&gt;
</description></item><item><title>HybridDictionary</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3541631</link><pubDate>Tue, 26 Jun 2007 12:24:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3541631</guid><dc:creator>Finnsson</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I couldn't agree more about the reasons to switch to generic collections. However, it seems like you have forgotten to convert the collections in System.Collections.Specialized. I for one like to use HybridDictionary since it will give me OK performance for both small and large collections and I would love a generic alternative to use. Do you plan to create a System.Collections.Generic.Specialized or System.Collections.Specialized.Generic?&lt;/p&gt;
&lt;p&gt;Take care,&lt;/p&gt;
&lt;p&gt;Finnsson&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3541725</link><pubDate>Tue, 26 Jun 2007 12:30:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3541725</guid><dc:creator>Henry Boehlert</dc:creator><description>&lt;p&gt;&amp;gt;Additional Considerations ...&lt;/p&gt;
&lt;p&gt;&amp;gt;3. Hashtable.Add() returns the index&lt;/p&gt;
&lt;p&gt;No, that seems wrong. Probably a &amp;quot;copy'n'paste&amp;quot; bug from &amp;quot;4. ArrayList.Add()&amp;quot;, isn't it?&lt;/p&gt;
&lt;p&gt;Although, that would be one nice feature to have ... &lt;/p&gt;
&lt;p&gt;Reminds me of ListDictionary and it's friends in System.Collections.Specialized.&lt;/p&gt;
&lt;p&gt;Any hints on how to migrate those?&lt;/p&gt;
&lt;p&gt;Any news on Set&amp;lt;T&amp;gt;?&lt;/p&gt;
</description></item><item><title>re: HybridDictionary, Specialized namespace</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3547155</link><pubDate>Tue, 26 Jun 2007 18:13:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3547155</guid><dc:creator>Zak Derbazi</dc:creator><description>&lt;p&gt;i think there is no need for a Specialized generic namespace as all of the non-generic classes have their generic equivalent implementations. For the HybridDictionaty it seems straightforward to use a SortedList/SortedDictionary with an initial capacity depending on scenario.&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3547926</link><pubDate>Tue, 26 Jun 2007 19:03:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3547926</guid><dc:creator>Adi</dc:creator><description>&lt;p&gt;Trackback from &lt;a rel="nofollow" target="_new" href="http://dotmad.blogspot.com/2007/06/non-generic-to-generic-types-conversion.html"&gt;http://dotmad.blogspot.com/2007/06/non-generic-to-generic-types-conversion.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Further Index Problems for VB projects</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3548085</link><pubDate>Tue, 26 Jun 2007 19:17:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548085</guid><dc:creator>Peter Walker</dc:creator><description>&lt;p&gt;If you're using a VB.NET project then be careful - ordinary collections are indexed from 1 whereas System.Collections.Generic.List is indexed from 0.&lt;/p&gt;
</description></item><item><title>Non-Generic Collections to be Removed from Silverlight [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3548133</link><pubDate>Tue, 26 Jun 2007 19:25:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548133</guid><dc:creator>BCL Team Blog</dc:creator><description>&lt;p&gt;Those of you who are already using Silverlight 1.1 Alpha may have seen that the familiar non-generic&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3548157</link><pubDate>Tue, 26 Jun 2007 19:27:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3548157</guid><dc:creator>Inbar Gazit</dc:creator><description>&lt;p&gt;Henry,&lt;/p&gt;
&lt;p&gt;You are correct and the blog was fixed.&lt;/p&gt;
&lt;p&gt;Also, for the Specialized Collections there are no direct non-generic equivilants and so I ommited them from this post.&lt;/p&gt;
&lt;p&gt;As for Set&amp;lt;T&amp;gt;, we have HashSet&amp;lt;T&amp;gt; introduced in Orcas see &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/bclteam/archive/2006/11/09/introducing-hashset-t-kim-hamilton.aspx"&gt;http://blogs.msdn.com/bclteam/archive/2006/11/09/introducing-hashset-t-kim-hamilton.aspx&lt;/a&gt; for details.&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3555390</link><pubDate>Wed, 27 Jun 2007 02:40:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3555390</guid><dc:creator>brian</dc:creator><description>&lt;p&gt;What about other kinds of set types? There does not seem to be an ISet&amp;lt;T&amp;gt; interface or even an abstract Set&amp;lt;T&amp;gt; to extend.&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit] - Senetance modfication</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3681671</link><pubDate>Wed, 04 Jul 2007 08:55:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3681671</guid><dc:creator>Ruwan Perera</dc:creator><description>&lt;p&gt;The paragraph before the last one has the below sentence as&lt;/p&gt;
&lt;p&gt;&amp;quot;However, the Hashtable.Item property is single reader/multiple writer threadsafe.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Shouldn't the above sentence be rephrase as &lt;/p&gt;
&lt;p&gt;&amp;quot;However, the Hashtable.Item property is multiple reader/single writer threadsafe.&amp;quot;&lt;/p&gt;
</description></item><item><title>Silverlight 1.1の基本クラス ライブラリにおける非ジェネリック系のCollectionについて</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3972155</link><pubDate>Fri, 20 Jul 2007 12:01:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3972155</guid><dc:creator>ディベロッパー製品開発統括部 Blog</dc:creator><description>&lt;p&gt;Silverlight 1.1の基本クラス ライブラリにおける非ジェネリック系のCollectionについて Alpha版で調査をなされていらっしゃるお客さまも多いのではと思いますが、Silverlightのランタイムにおいて非ジェネリック系のコレクション&lt;/p&gt;
</description></item><item><title>Silverlight 1.1の基本クラス ライブラリにおける非ジェネリック系のCollectionについて</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#3973196</link><pubDate>Fri, 20 Jul 2007 13:09:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3973196</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;Alpha版で調査をなされていらっしゃるお客さまも多いのではと思いますが、Silverlightのランタイムにおいて非ジェネリック系のコレクション クラスを取り除く予定でございます。また、ジェネリックのコレクション&lt;/p&gt;
</description></item><item><title>re: BCL Refresher: Converting the Non-Generic Collections [Inbar Gazit]</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#4038813</link><pubDate>Wed, 25 Jul 2007 10:07:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4038813</guid><dc:creator>Ole</dc:creator><description>&lt;p&gt;We have just been bitten by the fact that Dictionary is not multiple reader/single writer thread-safe.&lt;/p&gt;
&lt;p&gt;We had simply replaced all usages of Hashtable with Dictionary, and we were not aware that Dictionary is not thread-safe at all. According to MSDN, it is not even safe for multiple readers (no writers)!&lt;/p&gt;
&lt;p&gt;For now, we have decided to go back to Hashtable as we can not accept the loss of performance we will face if we need to use locks for all read access. The ReaderWriterLock is not an option as it is notoriously slow.&lt;/p&gt;
&lt;p&gt;I guess we will use ReaderWriterLockSlim when Orcas ships.&lt;/p&gt;
&lt;p&gt;Does anyone know a good Hashtable&amp;lt;T&amp;gt; implementation for .Net 2.0? It need to have the same threading characteristics as Hashtable.&lt;/p&gt;
&lt;p&gt;I really think it is a huge mistake that such a class is not included with the framework. It is something that is needed all the time by high perf. web and client/server applications.&lt;/p&gt;
</description></item><item><title>Bind a Collection to a GridView</title><link>http://blogs.msdn.com/bclteam/archive/2007/06/25/bcl-refresher-converting-the-non-generic-collections-inbar-gazit.aspx#8884860</link><pubDate>Thu, 21 Aug 2008 16:51:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8884860</guid><dc:creator>Mostly Developers</dc:creator><description>&lt;p&gt;Bind a Collection to a GridView&lt;/p&gt;
</description></item></channel></rss>