Value Types and Reference Types
Every type in .NET (including types like Integer as well as the EventLog class) is derived from the Object class. This means that every type has Sub New, Equals, GetHashCode, GetType, ReferenceEquals, ToString, Finalize, and MemberwiseClone methods. What isn't obvious are the differences between types like Integer and EventLog.
.NET has a Common Language Specification (CLS). The Visual Basic types you may be familiar with from VB6 don't exactly exist in .NET proper. Yes, there is an Integer type in VB .NET, but it is based in the System.Int32 value type defined in the CLS. Of course, having made it this far, you already know that you can use most of the types you are accustomed to; the compiler will convert the ...
Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.