新聞中心
C#文檔XML標(biāo)記是我們在C#文檔制作的時候必須要使用的,那么關(guān)于C#文檔XML標(biāo)記的各種標(biāo)記的屬性是如何的呢?我們使用中會有什么特點呢?那么讓我們來具體看看。

創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比佛坪網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式佛坪網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋佛坪地區(qū)。費用合理售后完善,十多年實體公司更值得信賴。
C#文檔XML標(biāo)記的介紹
:指示多行注釋標(biāo)識為Code
連用,用來給出如何使用某些成員的例子。
:用來定義表頭,經(jīng)常與
:說明參數(shù)的屬性,編譯器會檢查參數(shù)的合法性。如果通不過,會在文檔中產(chǎn)生!標(biāo)識的警告。
標(biāo)記及描述
cref:可用于任何標(biāo)記來提供一個代碼元素的參考。編譯器將檢查這個代碼元素是否存在,如不存在則在文檔中用!標(biāo)識。
name:用于或
C#文檔XML標(biāo)記使用的例子
1.標(biāo)記
- ///
- /// A method with a string array param.
- ///
- ///
- public void Koo(string[] ss) {}
2.
- ///
- /// A nonvoid method.
- ///
- ///
The result of the operation. - public int Noo() { return 0; }
3.
- ///
- ///
- /// Throws a FileIOException when...
- ///
- ///
- public void Foo() {}
4., 和
- ///
- ///
Hoo is a method in theClass1 class.- ///
- public void Hoo() {}
- ///
- /// The Joo method.
- ///
This example shows how to use Joo: - ///
- ///
- /// public static void Main()
- /// {
- /// Console.WriteLine(Class1.Joo());
- /// }
- ///
- ///
- ///
- ///
- public static int Joo() { return 0; }
5.
- ///
- class Class1{
- public static void Main() {}
- }
- supporting.xml
- The summary for this type.
- Another type description.
6.標(biāo)記語法及應(yīng)用
term description term description - ///
Here is an example of a bulleted list: - ///
- ///
- ///
Item 1. - ///
- ///
- ///
Item 2. - ///
- ///
- ///
- static void Main(string[] args) {}
C#文檔XML標(biāo)記的基本內(nèi)容就向你介紹到這里,希望對你了解和學(xué)習(xí)C#文檔XML標(biāo)記有所幫助。
【編輯推薦】
- C#調(diào)用瀏覽器的原理及實現(xiàn)淺析
- C#文件瀏覽器制作的詳細(xì)過程
- C#貨幣格式轉(zhuǎn)化實例解析
- 淺析C#文檔自動化實現(xiàn)
- C#文檔輸出的類型描述符淺析
分享題目:詳解C#文檔XML標(biāo)記
地址分享:http://fisionsoft.com.cn/article/cdccpsh.html


咨詢
建站咨詢
