use*_*389 0 c# java commenting
说如果我有代码
static private String[][] getRssData(String channel)
{
//Code here...
}
Run Code Online (Sandbox Code Playgroud)
有没有办法可以在悬停时查看函数的描述?即添加
//this is Using to get the RssData
Run Code Online (Sandbox Code Playgroud)
我打算用c#和java编码来做这件事
在Visual Studio IDE for C#中,您可以使用XML文档:
///<summary>
///This is used to get the RSS data
///</summary>
///<param name="channel">The channel</param>
///<returns>The RSS data</returns>
private static string[][] GetRssData(string channel)
{
//...
}
Run Code Online (Sandbox Code Playgroud)
您可以使用Android Studio中的[Javadoc]插件(http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html)在Java中执行相同的操作:
/**
* This is used to get the RSS data
* @param channel The channel
* @return The RSS data
*/
static String[][] getRssData(String channel)
{
//...
}
Run Code Online (Sandbox Code Playgroud)