How to show common types in C # XML Summary

/// <summary> /// Something about this generic method which works with ??? type. /// </summary> /// <typeparam name="T">∙∙∙</typeparam> /// <returns></returns> public T Foo<T>() { ∙∙∙ } 

Is it possible to write a comment in the summary tag to show the currently set type of the generic type. (how does visual-studio do this)?

( for example, We can see Something about this generic method which works with string type. in the prompt Foo<string>() )

+4
source share
2 answers

this tag should do this <typeparamref name="T"/>

Recommended Tags for Documentation Comments (C # Programming Guide)

+1
source

I think you should use GhostDoc . GhostDoc Link . Using the keyboard shortcut Ctrl + Shift + d on top of the method. He creates the documentation.

0
source

All Articles