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 + +