title: how to assign not null condition in vb.net?
body: <p>i am working on windows8 vb.net mobile application in that application i am checking not null conditions.here below i have attaching the code file.</p>
  
  <pre><code>If JobEventAllDetailsSortnew.Item(value).EventText() IsNot Nothing _
  And JobEventAllDetailsSortnew.Item(value).ReasonCodeDesc() IsNot Nothing Then
      mEventNotes = "Event text: " + JobEventAllDetailsSortnew.Item(value).EventText() + _ 
                    "\nReason: " + JobEventAllDetailsSortnew.Item(value).ReasonCodeDesc()
  ElseIf JobEventAllDetailsSortnew.Item(value).EventText().Trim() IsNot Nothing Then
      mEventNotes = "Event text: " + JobEventAllDetailsSortnew.Item(value).EventText()
  Else
      mEventNotes = JobEventAllDetailsSortnew.Item(value).EventText().Trim() + _
                    "\n" + JobEventAllDetailsSortnew.Item(value).ReasonCodeDesc().Trim()
  End If
  </code></pre>
  
  <p>Please give me any suggestion how to write not null conditions in vb.net?</p>