C
Carlos Rodriguez
When evaluating if the Deactivated event Is Nothing. It cause an errorWhat
is the right translation from C# to VB.NET?C#public void Deactivate()
{
this.m_transactions.Clear();
if (this.Deactivated != null)
{
this.Deactivated(this, EventArgs.Empty);
}
}
VB.NETPublic Sub Deactivate()
Me.m_transactions.Clear
If (Not Me.Deactivated Is Nothing) Then
Me.Deactivated.Invoke(Me, EventArgs.Empty)
End If
End Sub
is the right translation from C# to VB.NET?C#public void Deactivate()
{
this.m_transactions.Clear();
if (this.Deactivated != null)
{
this.Deactivated(this, EventArgs.Empty);
}
}
VB.NETPublic Sub Deactivate()
Me.m_transactions.Clear
If (Not Me.Deactivated Is Nothing) Then
Me.Deactivated.Invoke(Me, EventArgs.Empty)
End If
End Sub