title: How to dispose unmanaged resource manually?
body: <p>I am using some unmanaged code like-</p>
  
  <pre><code> [DllImport("wininet.dll")]
      private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);
      //Creating a function that uses the API function...
      public static bool IsConnectedToInternet() {
          int Desc;
          return InternetGetConnectedState(out Desc, 0);
      }
  </code></pre>
  
  <p>Any suggestions on how I can dispose/cleanup this extern static object when I call Dispose?</p>