title: How to determine tcp port used by Windows process in C#
body: <p>Is there a managed class/method that would provide the TCP port number(s) used by a particular Windows processes?</p>
  
  <p>I'm really looking for a .NET equivalent of the following CMD line:</p>
  
  <pre><code>netstat -ano |find /i "listening"
  </code></pre>