Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created February 1, 2019 23:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AnthonyDGreen/c3dea3d91ef4ffc50cfa92c41f967937 to your computer and use it in GitHub Desktop.
' You don't have to write this:
If PropertyChangedEvent IsNot Nothing Then
RaiseEvent PropertyChanged(Me, e)
End If
' You don't have to write this:
Dim handlers = PropertyChangedEvent
If handlers IsNot Nothing Then
handlers(Me, e)
End If
' You don't have to write this either:
PropertyChangedEvent?(Me, e)
' Just write this:
RaiseEvent PropertyChanged(Me, e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment