In C ++, you can create useful code modules by creating a class and issuing header and implementation files to developers who want to use your class.
I want to do this in C #, but I have little experience with the C # language. Basically, I need to create a class that can be reused by another C # programmer in Visual Studio 2010. I know that DLL references are one way to use other people's classes. Do I need to create a DLL to achieve what I want to achieve? Or are there other, better ways?
For example, let's say I create a Cow class that can "moo". In C ++, someone who uses my class will simply enable Cow.h, instantiate the Cow object myCow, and then call myCow.moo (). How can I achieve this simple task in C #?
Thanks for your time and patience.
source share