Redundant namespace reference
CodeRush Classic shows the Redundant namespace reference code issue if a namespace reference (using/Imports statements in C# and VB) is never used in the current file.
#Fix
Remove the unused namespace reference.
#Purpose
Highlights the using (Imports) statements, which can be removed to improve code readability.
#Example
using System;
using │System.Drawing;
namespace MySolution
{
public class MyClass
{
public MyClass(string name)
{
Name = name;
}
public string Name { get; private set; }
public object Value { get; set; }
}
}
Fix: