|
-
Jan 1st, 2006, 11:21 AM
#1
Thread Starter
Addicted Member
[Resolved] Module?
What component is the equivilent to a vb.net "Module", in c#?
Last edited by Pythagoras; Jan 1st, 2006 at 11:36 AM.
Visual Studio.Net 2003
"Every man has been made by God in order to acquire knowledge and contemplate."
--Pythagoras
-
Jan 1st, 2006, 11:30 AM
#2
Re: Module?
When a VB.NET module is compiled it is implemeted as a NotInheritable (sealed in C#) class with all Shared (static in C#) members with a single Private constructor. If you create a NotInheritable class with all Shared members in VB.NET or a sealed class with all static members in C# and a single Private constructor you have basically reproduced the behaviour of a VB.NET module. The one exception is the fact that all Shared/static class members must be qualified in code with the class name, whereas module members need only be qualified with their namespace.
-
Jan 1st, 2006, 11:36 AM
#3
Thread Starter
Addicted Member
Re: Module?
Thank You for the quick reply!!!!
Visual Studio.Net 2003
"Every man has been made by God in order to acquire knowledge and contemplate."
--Pythagoras
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
|