title: C#, is there 'Defer Call' like golang?
body: <p>golang support 'Defer Call' and when c++, I use this trick(?). </p>
  
  <pre><code>struct DeferCall
  {
     DeferCall() {}
     ~DeferCall() { doSomeThing(); }
  }
  
  void SomeMethod()
  {
      DeferCall deferCall;
      ...
  }
  </code></pre>
  
  <p>how can I do this in c# ?</p>
  
  <p>I need like this <a href="https://tour.golang.org/flowcontrol/12" rel="noreferrer">golang defer tutorial</a></p>