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.


Rajat TyagiReply

Hi Admin , this is very helpful ,I have search google, got many content but not clear as like this . Can you make a post on User defined function in C#. ?

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.

Vipin PandeyReply

this is very helpful

Surya Prakash (Admin) Reply

Thanks Vipin.

Leave a Reply

Your email address will not be published. Required fields are marked *


Talk to us?

Post your blog

F.A.Q

Frequently Asked Questions