Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, all

I am a vb.net programmer and I usually like to "module" to seperate a bundle of functions from my main namespace and class. This is because sometimes I want other classes to access to it while these functions are simply enough that I don't want to make them into classes seperately. But, I don't think I can use module in c#, is there anyway I can achieve the same or a simailiar result if I use C#.

Thanks!

Donald DUCK : YOU ARE FIRED!!!
Posted
The compiler makes VB modules into a specialized class; so you can just use a class in C# since that's what you're doing in VB but just don't know it by looking at the code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...