代码之家  ›  专栏  ›  技术社区  ›  rory.ap

编译器警告CS1723“XML comment具有引用类型参数的cref属性'T'”是什么意思?

  •  0
  • rory.ap  · 技术社区  · 7 年前

    给定此代码:

    /// <summary>
    /// Implementations represent a configuration with a specific data 
    /// type <see cref="T"/> that can be used by this application.
    /// </summary>
    internal interface IConfiguration<T>
    {
    }
    

    我收到一个编译器警告 CS1723 在…上 T see cref XML元素:

    XML注释具有引用类型参数的cref属性“T”

    MS Docs在这种情况下是完全无用的。我为什么要关心这个警告?原因是什么?

    2 回复  |  直到 5 年前
        1
  •  16
  •   Matt Johnson-Pint    7 年前
        2
  •  4
  •   adjan    7 年前

    see cref

    文档类型参数使用

    <typeparamref name="name"/>