• Damon Allison
  • Andy Olsen
  • James Speer


Properties have been part of Visual Basic for a long time. In this chapter, we describe how Visual Basic .NET extends the support for properties found in earlier versions of the language. Well see plenty of examples along the way, to illustrate how properties can improve the encapsulation, usability, and robustness of our classes. In this chapter we will cover:
  • The implementation of properties in VB.NET

  • Scalar properties, and their advantages over fields and methods

  • How properties look when compiled to MSIL

  • Read-only and write-only properties, and when to use them

  • Shared properties and when to use them

  • Indexed properties, including default properties and overloading

So, let’s start by defining how properties are implemented in Visual Basic .NET.


Unify Modeling Language Scalar Property Index Property Visual Basic Item Property 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Damon Allison, Andy Olson, and James Speer 2003

Authors and Affiliations

  • Damon Allison
  • Andy Olsen
  • James Speer

There are no affiliations available

Personalised recommendations