CÁC GIẢI PHÁP LẬP TRÌNH C# - Trang 687

687

Phụ lục A: Giới thiệu một số công cụ .NET

Hình A-7 Chọn đường dẫn để lưu tài liệu XML

Dưới đây là phương thức ở mục A.4:

/// <summary>

/// This test adds a number of values to the Hashtable collection

/// and then retrieves those values and checks if they match.

/// </summary>

[Test]

public void HashtableAddTest()

{

// Phần thân phương thức ở đây.

}

Phần chú thích XML cho phương thức này sẽ được trích xuất và lưu thành file XML như sau:

<?xml version="1.0" ?>

<doc>

<assembly>

<name>NUnitExample</name>

</assembly>

<members>

<member name="M:NUnitExample.HashtableTest.HashtableAddTest">

<summary>This test adds a number of values to the Hashtable

collection and then retrieves those values and checks if

they match.