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...

Comments

Contribute

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.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”