vb.net If statement is not null / How to check for Null value in vb.net

How to check for Null value in vb.net

In C#:

if(SomeEvent != null)
         {
            SomeEvent(this, args);
         }

In VB.NET: 
 if Not SomeEventEvent is Nothing Then
            SomeEventEvent(Me, args)
 End If
Advertisements
By simplemsexchange Posted in C#, VB.NET

3 comments on “vb.net If statement is not null / How to check for Null value in vb.net

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s