Is a Module in same as DLL in RRS feed

All replies

  • Hello,

    • A code module in VB.NET is the same as a static class in C#.
    • A class library in VB.NET may contain a code module, use Public Module to be able to access it.
    • A class library in C# may contain a static class, use public static  to be able to access it.
    • Neither a code module or static class need to be created, simply access members, functions and procedures.
    • A DLL is a compiled class project in VB.NET or C#

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Friday, July 12, 2019 12:37 PM
  • A DLL can be a result from a build process (can be from any program language including VB and C#). 

    A Module is a keyword in VB to mark a piece of code, C# does not have that keyword. In both you can use for that as well a shared (vb) or a static (c#) class

    Therefore your question is about apples and oranges.

    In .Net a DLL can be 2 things:

    1. .Net a library
    2. a piece of executable  code for instance for web programs or sharepoint. 


    Friday, July 12, 2019 3:56 PM