Visual Studio Next Generation: Language Enhancements

Shared Members

Shared members are data and function members of classes that are shared by all instances of the class. Sharing a single instance of a data member or function among all instances of a class is required in a Visual Basic application with inheritance. A shared data member is one that all instances of a class share. A shared data member exists independently of any particular instance of the class. A shared method is a method, which unlike normal methods, is not implicitly passed an instance of the class. For this reason no unqualified references to non-shared data members is allowed in a shared method. Public shared members can be accessed remotely and they can be late-bound from an instance of the class.

You might also like...



Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.” - Alan Kay