Snippet: Private event with EventHandler<T>

property value
IDE Visual Studio
Language VB
Title Private event with EventHandler<T>
Shortcut pet
Description Private event declaration with EventHandler<T>
Snippet Types Expansion
Namespaces System

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
eventArgs EventArgs type name EventArgs yes
name Event name EventName yes
parameterName Parameter name e yes

Code

Private Event EventName As EventHandler(Of EventArgs)

Protected Overridable Sub OnEventName(e As EventArgs)
	RaiseEvent EventName(Me, e)
End Sub