title: When does IDE0063 dispose?
body: <p>I'm trying to understand this C# 8 simplification feature:</p>
  
  <blockquote>
    <p>IDE0063 'using' statement can be simplified</p>
  </blockquote>
  
  <p>For example, I have:</p>
  
  <pre><code>void Method()
  {
      using (var client = new Client())
      {
          // pre code...
          client.Do();
          // post code...
      } --&gt; client.Dispose() was called here.
      // more code...
  }
  </code></pre>
  
  <p>IDE tells me I can simplify this <code>using</code> statement by writing this instead:</p>
  
  <pre><code>void Method()
  {
      using (var client = new Client());
      // pre code...
      client.Do();
      // post code...
      // more code...
  }
  </code></pre>
  
  <p>I can't understand how it works and how it decides I'm not <code>using</code> the variable anymore. More specifically, when exactly does it call <code>client.Dispose</code> method?</p>