roslynator
roslynator copied to clipboard
Suggestion: Add refactoring for ArrayList
Suppose we have an old code like this (belongs to .NET 1x):
ArrayList list = new ArrayList();
list.Add(1);
list.Add(2);
It would be really useful to have a refactoring for converting the ArrayList to a generic List to avoid the future boxings. The structure of this List should be detected from the usage of the list here: List<int>