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: 3454 | 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