Hi,
I have the following problem in CodeRush:
Steps to reproduce:
- Create an interface
- Add a method that references a generic type somehow. Example: Foo<Bar> GetFoo();
- Add an XML comment to XML comment for the method that contains a <see/> tag. Example: /// <returns>A <see cref="Foo{Bar}"/>.</returns>
- The Foo generic class and the Bar enum is in the namespace Baz.
- Add a class that implements the interface.
- To make the code compile, add a using statement to the Baz namespace (for Foo class and Bar enum).
- On the method in the implementing class, run the "Add XML Comments" on the method
- Observe that CodeRush inserts a broken version of the <see/> tag. In my example: /// <returns>A <see cref="Baz.Foo`1"/>.</returns>
- So the Bar generic parameter is lost, and Foo is unnecessarily fully qualified.
Hi Ivan,
Thank you for the report. I reproduced this issue. You will get notified when we fix it. Please bear with us.
OK, good.
Please also test the fix with the scenario <see cref="Foo{Bar, int}" /> (that is, more than one generic type parameter), since this also fails when I use the Add XML Comments operation.
Best regards,
Ivan Uthus