Introduction Hai guys, I hope every one remembers me, i am writing after a long time... Even i have stopped (i have paused my writing for sometime) the Address book series. I will be continuing that shortly.
Any way, now i am going to share a new thing which I learnt just now. We all know that key word cannot be used as the property name, right. But really can be used. Just have a close look at the code.
Class letter Private _to As String
Public Property [to]() As String Get Return _to
End Get Set(ByVal Value As String) _to = Value End Set End Property
End Class
This is class I have defined, where i have property called To which actually in the declaration part it is [to]. But that property is referred as To only which is a keyword. The following code actaully access the property.
Dim obj as new Letter() obj.to = "Sadha Sivam"
Is that sounds interesting. Mail me at sadhasivam1981@gmail.com.
|
| Author: Abdikarim 19 Jul 2004 | Member Level: Bronze Points : 0 |
we appreciate your effort of completing this project as soon as you can. thank you
|