Although unnecessary using won’t change anything to the produced application, removing them:
using System.Collections.Generic; // Noncompliant - unnecessary using
namespace Foo
{
public class Bar
{
public Bar(string path)
{
File.ReadAllLines(path);
}
}
}
using System.IO;
namespace Foo
{
public class Bar
{
public Bar(string path)
{
File.ReadAllLines(path);
}
}
}