RefactoringEssentials
RefactoringEssentials copied to clipboard
RECS0096 fires on partial classes where not used
trafficstars
internal class Class1<T>
where T : class, new()
{
public T GetItem()
{
T x = new T();
return x;
}
}
internal partial class Class1<T> // fires here
{
public object BaseItem()
{
return new object();
}
}
Removing the Type parameter makes the second portion a different type, but the parameters are required on ALL declarations of the type.