Link to home
Start Free TrialLog in
Avatar of IssacJones
IssacJones

asked on

Handler

Hi

I'm looking at some legacy code in VB.net and wondering what the code does. Here is a snippet:

    Public Sub RegisterHandler(ByVal handler As CloseApplication)

        Me.m_handler = handler

    End Sub

    Protected Overrides Sub OnClosed(ByVal e As System.EventArgs)

        If Not m_handler Is Nothing And Me.m_confirmClicked = False Then
            m_handler.Invoke()
        End If

    End Sub

Can anybody explain what the m_handler variable is doing?

Issac
ASKER CERTIFIED SOLUTION
Avatar of Itpotter
Itpotter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IssacJones
IssacJones

ASKER

Thanks guys