So just what is coming to Visual Basic with the next version?
The short answer is Lots!
Announced at PDC 2008, one aspect that is coming, and one that I am looking forward to, is auto-implemented properties.
Just what is that? Gone are the days where you have to hard code in a getter and setter for custom properties in Classes.
As it stands now you would have:
Private m_someField As String
Public Property someField() As String
Get
Return m_someField
End Get
Set(ByVal value As String)
m_someField = value
End Set
End Property
Look familier?
Well now you can have it all in one line of code.
Public Property someField As String
It even gets better. You can also add a default value for your property on the same line too.
Public Property someField() As String = ""
This will make coding custom Classes so much easier and faster.