title: Returning instance of resource class
body: <p>I have a method which return an instance of resource class, how can use the "using" statement to avoid resource leak?</p>
  
  <pre><code>public ResourceClass method()
      {
          return  new ResourceClass ();
      }
  </code></pre>
  
  <p>I hope my question is clear.
  Thanks in advance</p>