|
-
Aug 5th, 2010, 11:51 AM
#1
Re: DLL - Class or Module?
Making a class and marking every public method static seems silly, no?
No, not really... because 1) that's what's going on behind the scenes anyways... 2) the concept of a module is VB-specific... C# doesn't have anything like it (short of doing it all by hand). So in general terms of learning OOD/OOP ... no, it doesn't seem silly, but logical. The use of a module file simply takes the mundane out of having to do it yourself.
-tg
-
Aug 5th, 2010, 12:05 PM
#2
Thread Starter
Frenzied Member
Re: DLL - Class or Module?
So tech, you think it makes absolutely no difference whether a module or a class with all its membres static is used? Or is it better to use the class since that is what it really is anyway?
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Aug 7th, 2010, 11:57 PM
#3
Re: DLL - Class or Module?
 Originally Posted by techgnome
the concept of a module is VB-specific... C# doesn't have anything like it (short of doing it all by hand).
A VB module is equivalent to a C# static class. If you declare a class static in C# then declaring a non-static member will produce a compilation error. The two compile to the same IL. The module concept in VB is in keeping with VB6 modules.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|