What are classes and modules for in C#

c#, class, module

Solution

(Maybe I should be clear, there are no "Modules" in C# as in VB.NET's "Module")

There are no modules in C# (like the modules in VB or VB.NET). So, instead a module is one which is compiled and packaged into an assembly, it's more logical.

Whereas class is a well defined entity. A module may use a class (or classes), to function. (Again the word "module" is used logically)

The word "Module" is also used in a context quite different, in System.Reflection.Module

Problem

Can someone explain the difference between a class and a module. When do you use one versus the other? I am using C#. Update: I do mean the C# equivalent of the VB Module.

Original source