Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.NET: How to reference VB.NET module?

Tags:

I got a Utility module since VB.NET doesn't have static class like C# and Module is the static class in VB.NET. The reason that I use module is because I'm using the Extension method and it can only be use in Module.

I can't reference to this module but if I put my code in a class. I can reference to it without any problem. What could be the reason? I missed C#.

Edit: The module is inside a class library call Utility.

like image 965
Jack Avatar asked Jan 12 '09 19:01

Jack


People also ask

What is vb net module?

The Module statement declares the name of a module and introduces the definition of the variables, properties, events, and procedures that the module comprises. It defines a reference type available throughout its namespace.

What is the difference between module and class in VB net?

The main difference between classes and modules is that classes can be instantiated as objects while standard modules cannot.


1 Answers

You need to mark the module as Public Module.

like image 162
Jack Avatar answered Sep 17 '22 18:09

Jack