c# - 我如何记录一个 c# dll

标签 c# class dll attributes

我如何编写一个类,以便在其他项目中引用该 dll 的人可以看到属性和方法描述?

    [Description("My age in years attribute")]
    public int Age
    {
        get { return 0; }
        set { }
    }

不行,不行

    /// <summary>
    /// My age in years attribute
    /// </summary>
    public int Age
    {
        get { return 0; }
        set { }
    }

最佳答案

在 Visual Studio 中:

Project -> Properties -> Build -> Check "XML Documentation File".

有关详细信息,请参阅 XML Comments Let You Build Documentation Directly From Your Visual Studio .NET Source Files .

关于c# - 我如何记录一个 c# dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2193038/

相关文章:

java - C-DLL 中的回调函数转换为 java JNA

c# - 如何在 Infragistics UltraWinGrid 中将绑定(bind)到集合类的列呈现为子行?

c# - C# 中的 Windows 应用程序?

c++ - OpenCL 的问题(opencl.dll、AMD APP SDK、cl.h)

c++ - 删除 vector 类成员

javascript - 将 'Const' ReactJs 组件转换为基于参数的类

c++ - 我如何找出我的 C++ 程序使用的 DLL?

c# - NHibernate Web 服务中的 "Could not execute query error"

c# - 如何为 IDisposable 类型使用自定义生成器?

c++ - 在析构函数中释放内存时出现段错误