如何在方法的XML文档中引用其他类型的成员?

时间:2013-04-27 22:50:04

标签: c# documentation sandcastle xml-documentation

我的一个方法有以下XML文档段:

    /// <summary>
    /// Calculates the total charge for hours between the <see cref="StartDateTime"/> and <see cref="EndDateTime"/> of all all the <see cref="VehiclePresence"/> records 
    /// included in the date range defined by <paramref name="startDate"/> and <paramref name="endDate"/>.
    /// </summary>

<see cref="StartDateTime"/>部分呈现为[!:StartDateTime]。我希望它呈现为VehiclePresence.StartDatetTime属性文档的链接,就像<see cref="VehiclePresence"/>部分呈现为VehiclePresence类文档的链接一样。

1 个答案:

答案 0 :(得分:12)

您可以使用

<see cref="VehiclePresence.StartDateTime"/>

引用其他命名空间中的类型