Export note "11" for C + +/CLI managed + +

Source: Internet
Author: User

The addition of annotations is of course necessary when the encapsulated CLI DLL is available to net. This article describes how to use XML annotations to get a comment for a DLL. Two points involved:


Comments for members of the "1" CLI need to be added in a standard way, and the simple point is how C # adds comments//And the CLI is added in the same way as:

<summary>///1 String Test class//</summary>public ref class Strcls{public://<summary>//    1.1 string as input parameter///</summary>//    <param name= "Pinstr" > String </param>//      <returns> Successfully returned 0</returns>     static Int32 stroutput (string^ pinstr);           <summary>///    1.2 string as parameter, need to be modified return to///</summary>//    <param name= "Poutstr" > string </param>      ///<returns> successfully returned 0</returns>     static Int32 strchange (string^%poutstr);            <summary>///    1.3 string array as parameter///</summary>//    <param name= "Ppstr" > string array </ Param>      //<returns> successfully returned 0</returns>     static Int32 Strchangearr (array<string^>^% PPSTR);};

"2" needs to be in the configuration of the project, select the configuration to generate the XML file (Project--Properties)


"3" Recompile the project, you can see the DLL in the same directory, generated the corresponding XML comments, using XML and DLL needs in the same directory.



Export note "11" for C + +/CLI managed + +

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.