Microsoft.NET 4.0/VB.NET 10 Automatic Properties

  • Home
  • Blog
  • Microsoft.NET 4.0/VB.NET 10 Automatic Properties

In C# we are having automatic properties since C# 3.5 framework but now with Microsoft.NET 4.0 Framework VB.NET 10.0 version we are also having automatic properties for VB.NET Also.

Like in C# we can define automatic like following.

Public string TestProperty{get;set;
}

Same way we can define in automatic Property in VB.NET as follows.

Public Property TestProperty As String 

You can use this properties any where in class same as C# automatic property.