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: 3486 | Points: 40
Answer:

The Syntax is :

Public Property MyExample As Integer

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


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

Comments or Responses

Login to post response