引用 dll 路径的区域内的此注释的目的是什么? (系统.操作)

2024-05-13

如果我浏览到 VS 中 System.Action 的定义:

#region Assembly mscorlib.dll, v2.0.50727
// C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
#endregion

namespace System
{
    // Summary:
    //     Encapsulates a method that takes a single parameter and does not return a
    //     value.
    //
    // Parameters:
    //   obj:
    //     The parameter of the method that this delegate encapsulates.
    //
    // Type parameters:
    //   T:
    //     The type of the parameter of the method that this delegate encapsulates.
    public delegate void Action<T>(T obj);
}

问题:第一行发生了什么?在我看来,这几乎就像某种“黑客”来告诉某些 dll 的物理路径。


这是 VS 使用 Reflection 和 XML 文档注释自动生成的假文件。

文件路径供您自己参考。
如果您从不同项目的不同位置引用 DLL,它会很有用。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

引用 dll 路径的区域内的此注释的目的是什么? (系统.操作) 的相关文章

随机推荐