Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xml doc - <see> tag on parameter

Is it possible to use the <see cref=""/> tag to reference a parameter? What I mean is something like this:

/// <summary>
/// Method with parameter <see cref="foo"/>.
/// </summary>
public static void Foo(int foo)
{

}

Resharper tells me that this is correct. But if I build the project, the build process tells me that it is not correct and that foo can't be resolved. I've also tried to sand castle tool which also gives me a warning that foo can't be resolved.

So is there any possibility to reference a parameter?

like image 573
Florian Avatar asked Dec 04 '25 15:12

Florian


1 Answers

To reference a parameter you need to use <paramref>:

/// <summary>
/// Method with parameter <paramref name="foo"/>.
/// </summary>
like image 61
Martin Liversage Avatar answered Dec 07 '25 05:12

Martin Liversage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!