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

Pro*_*ofK 5 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>
Run Code Online (Sandbox Code Playgroud)

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

Dar*_*nda 13

您可以使用

<see cref="VehiclePresence.StartDateTime"/>
Run Code Online (Sandbox Code Playgroud)

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