.NET package class library into DLL with comments, use and decompile to see the effect

The first step, to build a library
Note the .NET Framework class library is the
Insert picture description here
second step, writing a few wrapper classes
are divided into non-static class and static class, these two are not the same way to use
a non-static class
Insert picture description here
static class
Insert picture description here
third Step, generate xml for project settings,
this is for your dll to have comments when decompiling.
Insert picture description here
Step 4, use
to copy both dll and xml (dll and xml should be in the same directory) , and add a reference, when using , The static class does not need new
Insert picture description here
step 5, decompile to check the effect,
just drag the dll directly to the ILSpy tool
Insert picture description here

Guess you like

Origin blog.csdn.net/q1923408717/article/details/115248266