create class and build compile to dll
In Visual studio:
Create a new Class Library Project (File => New Project => Class Library)
Right click new project, select "Build"
DLL file will be found in a sub-folder of the new project (likely \bin\Debug) ---> NOT ALWAYS VISABLE IN VS, check folder in windows explorer...