What is the Syntax of get and set properties in VB.net?

 Posted by Chvrsri on 12/10/2010 | Category: VB.NET Interview questions | Views: 4523 | Points: 40

The Syntax is :

Public Property MyExample As Integer

' Retrieves number.
Return number
End Get
' Assigns to number.
number = value
End Set
End Property

Source: My Own Observation | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response