0

I know I can do the following to prevent debugger from entering into Subroutine

<DebuggerHiddenAttribute()> _
Private Sub OnTick()
    ...
End Sub

Is there a way to do similar thing for a property that looks like this ?

Public Property Naziv() As String
    Get
        Return _naziv
    End Get
    Set(ByVal value As String)
        _naziv = value
    End Set
End Property

1 Answer 1

1

Put the attribute above the getter and setter:

Public Property Naziv() As String
    <DebuggerHidden()> _
    Get
        Return _naziv
    End Get
    <DebuggerHidden()> _
    Set(ByVal value As String)
        _naziv = value
    End Set
End Property

Also (as this code shows), don’t write out the Attribut part of the class name. The convention is that an attribute class XAttribute is addressed simply as X.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.