DLL is file extension & known "dynamic link library" file format used for holding multiple codes and procedures.The use of DLLs helps promote modularization of code, code reuse, efficient memory usage, and reduced disk space. So, the operating system and the programs load faster, run faster, and take less disk space on the computer.
we learn in this blog , How to create DLL. with steps
Step1 - first open visual studio and go to file section.
Step 2- After that open a window , choose Visual C# >Windows > Class Library and give a proper name to your DLL
Step 3 - After that you will press ok button , then open below screen
Step 4 - After that for a Example I added three overload method for test purpose, you can create your own method according to your requirement. All function is public and static method so that we do not need to create instance of that class. we can call class member directly using classname
Step 5- After that you need to build your project .
right click on your project you will find option to build your project
Step - 6 after build successfully , right click on your project
and click on open folder in file explorer
Step 7- Go inside bin\debug\ then find your DLL
Now your DLL is ready to use it , you have to add it in your application.
and inside which method you have defined you are able to use it.
Thanks to read this post.
if you need any help , then you can contact me by simply drop a message.
Surya Prakash (Admin) Reply
Hi Rajat , firstly Thank You so much for this comment , I am very happy to see you , Yes I will write a Post on your requirement.