views:

27

answers:

1

As the title suggests I am looking for the key sequence to generate the standard Property syntax in a vb.net class. Example below so there is no confusion on what I am asking for. Thanks in advance!

Public Property MyProperty() As String
        Get
            Return _MyProperty
        End Get
        Set(ByVal value As String)
             Me._MyProperty= value
        End Set
    End Property
+1  A: 

Type "property" and hit tab twice:

Private newPropertyValue As String
Public Property NewProperty() As String
    Get
        Return newPropertyValue
    End Get
    Set(ByVal value As String)
        newPropertyValue = value
    End Set
End Property
asawyer
Code snippets to the rescue.... :-)
klabranche
Thank you very much!
Varuuknahl