C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
Today
    Last 7 Days more...






    Resources » Articles » .NET Framework »

    One small Tip about Using Keyword as properties or functions......


    Posted Date: 07 Jul 2004    Resource Type: Articles    Category: .NET Framework
    Author: Sadha SivamMember Level: Gold    
    Rating: 1 out of 5Points: 10



    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.





    Responses

    Author: Abdikarim    19 Jul 2004Member Level: Bronze   Points : 0
    we appreciate your effort of completing this project as soon as you can. thank you


    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    (No tags found.)

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: Asynchronous socket Programming using C#
    Previous Resource: FileViewer
    Return to Discussion Resource Index
    Post New Resource
    Category: .NET Framework


    Post resources and earn money!
     
    Related Resources



    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use