c#如何使用XML文档功能-创新互联
c#如何使用 XML 文档功能?很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。
成都创新互联服务项目包括龙陵网站建设、龙陵网站制作、龙陵网页制作以及龙陵网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,龙陵网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到龙陵省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!示例
// 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); }
网页标题:c#如何使用XML文档功能-创新互联
文章路径:http://scyanting.com/article/dcsgch.html