How to write only Readonly property in VB.Net?

 Posted by Rajesh_Kumar on 2/14/2014 | Category: VB.NET Interview questions | Views: 5533 | Points: 40
Answer:

In Vb.Net,we have to write ReadOnly keyword in property definition as

Public ReadOnly Property Age() As Integer

Get
Return 30
End Get
End Property


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response