开发者

In .Net, how do I decorate a class with an intellisense tip?

开发者 https://www.devze.com 2023-01-20 14:23 出处:网络
I want to be able to decorate classes and methods with the text that intellisense shows when you are instantiating the class or accessing a field.

I want to be able to decorate classes and methods with the text that intellisense shows when you are instantiating the class or accessing a field.

For example, I want to give usage instructions.

I can't find the appropriate decoration for this. How do I 开发者_StackOverflowdo it?


Just add this to the top of your class definition...

/// <summary>
/// Returns a pointless string
/// </summary>
/// <param name="name">Parameter to personalise the rubbish returned</param>
/// <returns>Utter junk is returned</returns>

Where summary is what is shown for the class description, a param node for each element which describes each parameter and return statement describing what's returned.


I think this can be done by using Componenet model

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号