RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

RECS0096 fires on partial classes where not used

Open RachelDavids opened this issue 7 years ago • 0 comments
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.

RachelDavids avatar Oct 04 '18 11:10 RachelDavids