Tôi có thể sử dụng thẻ nào để đặt các ví dụ mã trong .NET ///
nhận xét XML?Làm cách nào để đặt các ví dụ mã trong các nhận xét .NET XML?
8
A
Trả lời
16
Thử sử dụng thẻ <example>
.
/// <example>
/// <code>
/// // create the class that does translations
/// GiveHelpTransforms ght = new GiveHelpTransforms();
/// // have it load our XML into the SourceXML property
/// ght.LoadXMLFromFile(
/// "E:\\Inetpub\\wwwroot\\GiveHelp\\GiveHelpDoc.xml");
/// </code>
/// </example>
Tôi lấy ví dụ trên từ here.
6
Bạn có thể sử dụng các thẻ <example>
và <code>
.