What component is the equivilent to a vb.net "Module", in c#?
Printable View
What component is the equivilent to a vb.net "Module", in c#?
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.
Thank You for the quick reply!!!!