What's the syntax to inherit documentation from another indexer?

天涯浪子 提交于 2020-01-04 05:40:49

问题


In my implementation I have this:

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

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

I get a compiler warning:

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

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


回答1:


Use this: cref="IInterface{T}.this[long,long]"



来源:https://stackoverflow.com/questions/9791962/whats-the-syntax-to-inherit-documentation-from-another-indexer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!