我的其中一种方法具有以下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类的文档的链接一样。

最佳答案

您可以使用

<see cref="VehiclePresence.StartDateTime"/>

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

10-08 10:51