VB6 to VB.NET

When I defined a class in VB6 it automatically created the get & set methods for each field, does VB.net have the same functionality?  I can't seem to find it.
dgoncherAsked:
Who is Participating?
 
Kinger247Commented:
Not automatically, but you create them like this  :

    Private m_thisProperty As Boolean

    Public Property thisProperty() As Boolean
        Get
            Return m_thisProperty
        End Get
        Set(ByVal value As Boolean)
            m_thisProperty = value
        End Set
    End Property
0
 
dgoncherAuthor Commented:
I see that when I add a property to the class diagram screen it creates the get set template, i was just hoping I wouldn't have to go through each field and add define a property manually.  Oh well.....carple tunnel time :)
0
 
ZeonFlashCommented:
To supplement Kinger247's reply, as soon as you type "Public Property thisProperty() As Boolean" and press enter, the rest of the property methods (Get and Set) fill in automatically.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.