What would be considered a VB.NET module in C#? -


VB There are net sections and modules, so my first question is what is the difference? Besides, I saw that there are no modules in C #, but only classes, whether there is anything in place of the module or they have been removed for C #

For example:

In VB.NET

Ex> Modules Some modules include folk sub-doSomething MsgBox ("doing something!") End sub-end module

The same thing in C #:

  Public Stable Class DoSomethingFuncs {Public Static Zero DoSomething () {Message Box. Show ("Do Something!"); }}    

Comments