从另一个索引器继承文档的语法是什么? [英] What's the syntax to inherit documentation from another indexer?

查看:75
本文介绍了从另一个索引器继承文档的语法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In my implementation I have this:

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

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

The XMLdoc is already present in the IInterface. How can I pick it up from there (like I do for other things)?

我收到编译器警告:

对"XXX.YYY.this [long,long]"的108条XML注释在语法上具有错误的cref属性"IInterface this [,]"

Warning 108 XML comment on 'XXX.YYY.this[long, long]' has syntactically incorrect cref attribute 'IInterface this[,]'

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

I tried removing the this from the cref but that didn't work either. What syntax do I need?

推荐答案

使用此方法: cref="IInterface{T}.this[long,long]"

这篇关于从另一个索引器继承文档的语法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆