Home

"ctor" code snippet in a generic class

This is just a tiny thing but if I have a generic class the "ctor" code snippet doesn't generate the name correctly because it adds "`n" (where n is the number of generic parameters)

In the example below the "public Test`1()" block was generated by typing "ctor".
void Main()
{
	
}

public class Test<T>
{
	public Test`1()
	{
		
	}
}
Not a big deal as it's easy enough to remove the `1 bit, but thought I would point it out in case it's an easy thing to fix.

John
Sign In or Register to comment.