c# 4.0 - Creating reusable code modules (e.g. C++ style classes, headers) in C# -


in c++, can create usable code modules creating class, , giving out header , implementation files developers want use class.

i want in c# have little experience c# language. need create class can reused c# programmer in visual studio 2010. know referencing dlls 1 way use other peoples' classes. need create dll achieve want accomplish? or there other, better ways?

for example, let's create cow class can "moo". in c++, uses class include cow.h, instantiate cow object mycow, , call mycow.moo(). how can achieve simple task in c#?

thanks time , patience.

yes, create class library project , share resulted dll's.

other developers need add reference dll , after they're free use public objects library.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -