<p>I am migrating a 1.1 winforms app to 2.0.  what are the main things i should immediately change because of generics.  Here what i have so far:</p>

<ol>
<li>Replace all hashtables with generic dictionaries</li>
<li>Replace all arraylists with List&lt;></li>
<li>Replace all CollectionBase derive classes with : List&lt;></li>
</ol>

<p>Any others that should be done immediately?</p>

<p>thks,
ak</p>

Any others that should be done immediately?
Generally, change any mention of
```
IEnumerable
```
to
```
IEnumerable<T>
```
, where possible. Migration can be greatly helped by switching the whole namespace, i.e. un-
```
import
```
ing
```
System.Collections
```
in every file and instead importing
```
System.Collections.Generic
```
.
Also, search for mentions of
```
object
```
and/or usage of boxing in your code and consider whether this is still appropriate or should be replaced by generics.
As
jalf
reminded me in the comments, another important change is the switch to the generic version of
```
IComparable
```
where applicable.