【问题标题】:What's the syntax to inherit documentation from another indexer?从另一个索引器继承文档的语法是什么?
【发布时间】:2012-03-20 17:31:44
【问题描述】:

在我的实现中,我有这个:

/// <inheritdoc cref="IInterface{T} this[,]"/>
public T this[long row, long column]
{
    ...
}

XMLdoc 已经存在于IInterface 中。我怎样才能从那里拿起它(就像我做其他事情一样)?

我收到编译器警告:

关于“XXX.YYY.this[long, long]”的警告 108 XML 注释具有语法错误的 cref 属性“IInterface this[,]”

我尝试从cref 中删除this,但这也不起作用。我需要什么语法?

【问题讨论】:

    标签: c# sandcastle xml-documentation


    【解决方案1】:

    使用这个: cref="IInterface{T}.this[long,long]"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-30
      • 2020-07-24
      • 1970-01-01
      • 1970-01-01
      • 2021-12-05
      • 2015-09-20
      相关资源
      最近更新 更多