c#如何使用 XML 文檔功能?很多新手對此不是很清楚,為了幫助大家解決這個難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來學(xué)習(xí)下,希望你能有所收獲。
成都創(chuàng)新互聯(lián)服務(wù)項目包括龍陵網(wǎng)站建設(shè)、龍陵網(wǎng)站制作、龍陵網(wǎng)頁制作以及龍陵網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,龍陵網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到龍陵省份的部分城市,未來相信會繼續(xù)擴大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!示例
// If compiling from the command line, compile with: -doc:YourFileName.xml ////// Class level summary documentation goes here. /// ////// Longer comments can be associated with a type or member through /// the remarks tag. /// public class TestClass : TestInterface { ////// Store for the Name property. /// private string _name = null; ////// The class constructor. /// public TestClass() { // TODO: Add Constructor Logic here. } ////// Name property. /// ////// A value tag is used to describe the property value. /// public string Name { get { if (_name == null) { throw new System.Exception("Name is null"); } return _name; } } ////// Description for SomeMethod. /// /// Parameter description for s goes here. ////// You can use the cref attribute on any tag to reference a type or member /// and the compiler will check that the reference exists. /// public void SomeMethod(string s) { } ////// Some other method. /// ////// Return values are described through the returns tag. /// ////// Notice the use of the cref attribute to reference a specific method. /// public int SomeOtherMethod() { return 0; } public int InterfaceMethod(int n) { return n * n; } ////// The entry point for the application. /// /// A list of command line arguments. static int Main(System.String[] args) { // TODO: Add code to start application here. return 0; } } ////// Documentation that describes the interface goes here. /// ////// Details about the interface go here. /// interface TestInterface { ////// Documentation that describes the method goes here. /// /// /// Parameter n requires an integer argument. /// ////// The method returns an integer. /// int InterfaceMethod(int n); }