Complete Example
Refer to our VB.Net Class..Object post for an example.
Rumor Mill: Auto-Implemented Properties in VB.Net 10.0
It is widely rumored that the next version of VB.Net will include auto-implemented properties. Currently C# 3.0 and later offer this feature as follows:
//C# auto-implemented property.
pulic int VendorID {get; set;}
The next version of VB.Net is rumored to offer a similar syntax feature:
'VB.Net auto-implemented property.
Public Property VendorID() As Integer
In addition, it is rumored that the next version will allow you to iniatilize the property which is something C# does not allow.
'Initialized auto-implemented properity.
Public Property VendorID() As Integer = -1
This is important and useful when no additional logic is required for a property. Soon properties will be just as easy to create as a member field and have an equivalent compact form (a single line of code).