title: What is the drawback if I do not invoke the UdpClient.Close() method?
body: <p>I have the following code block, and it affects my program efficiency. The problem here is if the target host exists, everything is OK. But if it does exist, it takes too long to execute. Finally, I found out the "udp.Close()" occupies the most of execution time. If I does not invoke the close method, the efficiency is good. </p>
  
  <p>Can anyone help me tell me what is the drawback if I do not invoke the close method?? Thank you very much.</p>
  
  <pre><code>{ // This is my code block, I need to execute it many many times.
  string ipAddress = Dns.GetHostAddresses("joe-pc").FirstOrDefault().ToString();
  UdpClient udp = new UdpClient(ipAddress, Port);
  udp.Send(msg, msg.Length);
  udp.Close();
  udp = null;
  }
  </code></pre>