【问题标题】:How to add sumarry to method如何向方法添加摘要
【发布时间】:2014-02-08 10:04:27
【问题描述】:

我有一个类似follow的方法,

/// <summary>
/// Converts currency
/// </summary>
/// <param name="dtRawInput">Output of the procedure P_FETCH_CONV_CUR</param>
///<param name="FromCurrency">Three letter code of from currency  Ex: USD</param>
///<param name="ToCurrency">Three letter code of from currency  Ex: USD</param>
///<param name="FromAmount">From currency amount  Ex: USD</param>
///<param name="Type">N for normal conversion, F for fare round and T for tax round</param>
/// <exception cref="FormatException">Why it's thrown.</exception>       
public static string CurrencyConversion(DataTable dtRawInput, string FromCurrency, string ToCurrency, string FromAmount, string Type)
{
}

当我尝试访问此方法时,它会在工具提示上显示摘要和参数定义。

但问题是

  • 将此类转换为 dll 后,它没有显示任何内容。

请帮帮我

【问题讨论】:

    标签: c# dll summary


    【解决方案1】:

    那是因为您没有将 xml 文档文件与您的 dll 一起分发。要创建 xml 文档文件,您需要使用 Visual Studio 命令提示符工具生成 xml 文档文件并运行以下命令...

    csc yourclass.cs /doc:out_file.xml
    

    这是很难做到的。但是,由于您想要为一堆类生成 xml 文档文件,因此您可以从项目的属性页面进行设置,转到构建选项卡,然后勾选 Xml 文档文件复选框...见下面的屏幕截图。 ..

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-26
      • 1970-01-01
      • 1970-01-01
      • 2011-01-18
      • 1970-01-01
      相关资源
      最近更新 更多