Properties
Damon Allison, Andy Olsen, James Speer · Apress eBooks · 2003
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. 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.
Cited by 0 works. doi:10.1007/978-1-4302-0780-1_6