dotnet / dotnet/roslynator

Suggestion: Add refactoring for ArrayList

Open
#710 1 comment 0 reactions 0 assignees View on GitHub
Feature Request
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

Suppose we have an old code like this (belongs to .NET 1x):
```C#
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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.