Summary
In this chapter you saw another important part of .NET development with Visual Basic, which is related to creating custom value types. Structures are the .NET way of building custom value types and can expose methods, properties, and fields. There are several similarities with classes, but structures are value types allocated in the stack and cannot inherit or derive from other structures but can implement interfaces. Because of their nature, structures are susceptible to operations. This requires, in certain situations, the need for specific operators. The .NET Framework enables overloading operators to provide custom implementations of unary, binary, and logical operators, a technique that is allowed for classes. Another kind of value ...