When the property get and set method has been called?
Posted
by SmartestVEGA
on Stack Overflow
See other posts from Stack Overflow
or by SmartestVEGA
Published on 2010-03-26T10:17:39Z
Indexed on
2010/03/26
10:23 UTC
Read the original article
Hit count: 394
i have the following property declaration
Public Property IsAreaSelected() As Integer
Get
Return If(ViewState("IsAreaSelected") Is Nothing, 0, Cint(ViewState("IsAreaSelected")))
End Get
Set(ByVal value As Integer)
ViewState("IsAreaSelected") = value
End Set
End Property
i want to know when this set and get method will be called ?
will it be called when i execute
IsAreaSelected() =0
or is there anything like
IsAreaSelected().get()
or
IsAreaSelected().set()
??
© Stack Overflow or respective owner