开发者

Getting a method/parameters xml comment dynamically

So you know how your able to define a method comment such as

    /// <summary>
    /// Finds the site and information by site ID.
    /// </summary>
    /// <param name="siteID">The site ID.</param>
    /// <param name="customerLink">The customer link.</param>
    /// <returns></returns>
    public static Site FindSiteAndInformationBySiteID(int siteID, int customerLink)

Is ther开发者_JAVA技巧e any way that you can retrieve this in code. By this I don't mean parsing the .cs file but actually getting it so I can use it. Something like

<method>.XMLComment

Thanks in advance!


Go into the project settings and in the Build tab, check the box for XML Documentation File. This will output all the XML comments to the XML file you specify. Then you can use whatever code method you would normally use to read in the XML.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜