roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Suggestion: Add refactoring for ArrayList

Open VahidN opened this issue 5 years ago • 1 comments

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>

VahidN avatar Aug 19 '20 05:08 VahidN