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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -