I just posted this question和了解<see cref="">
,但是当我试图如何引用数组类型的文档注释
/// This is a set of extensions that allow more operations on a <see cref="byte[]"/>.
编译器给我的警告,它没有被正确格式化。我需要做什么,它会正确地看到代码引用?
I just posted this question和了解<see cref="">
,但是当我试图如何引用数组类型的文档注释
/// This is a set of extensions that allow more operations on a <see cref="byte[]"/>.
编译器给我的警告,它没有被正确格式化。我需要做什么,它会正确地看到代码引用?
你或许应该有<summary>...</summary>
各地:
/// <summary>
/// This is a set of extensions that allow more operations on a <see cref="byte[]"/>.
/// </summary>
我做过了,但是我从示例中删除了它,因为我不想输入3行。 – 2010-03-02 23:43:01
你可以这样写:
/// <summary>
/// Array byte <see cref="byte"/>[]
/// Nullable byte <see cref="byte"/>?
/// </summary>
或
/// <summary>
/// Array byte <see cref="T:byte[]"/>
/// Nullable byte <see cref="T:byte?"/>
/// </summary>
我不认为这是对[]本身的反对,更多的是关于编译器不能识别byte []作为可链接类型。我已经改变了你的问题的标题,以反映这一点:如果你不同意或认为我错了,请回滚。 – itowlson 2010-03-02 22:56:09