title: C# equivalent of VB.Net AddressOf Operator
body: <p>Code:</p>
  
  <pre><code>public Thread ThreadReceive;
  
  ThreadReceive = New System.Threading.Thread(AddressOf ReceiveMessages)
          ThreadReceive.Start()
  
  
      Public Sub ReceiveMessages()
          Try
              Dim receiveBytes As [Byte]() = receivingUdpClient.Receive(RemoteIpEndPoint)
              txtIP.Text = RemoteIpEndPoint.Address.ToString
              Dim BitDet As BitArray
              BitDet = New BitArray(receiveBytes)
          Catch e As Exception
              Console.WriteLine(e.Message)
          End Try
      End Sub
  </code></pre>
  
  <p>Can anyone Please Suggest me How to convert this line:</p>
  
  <pre><code>ThreadReceive = New System.Threading.Thread(AddressOf ReceiveMessages)
  </code></pre>
  
  <p>vb to C# </p>
  
  <p>Thanks,
  Basha.</p>