title: do I need a return after throwing exception (c++ and c#)
body: <p>I have a function that generate an exception. For example the following code:</p>
  
  <pre><code>void test()
  {
      ifstream test("c:/afile.txt");
      if(!test)
      { 
           throw exception("can not open file");
      }
      // other section of code that reads from file.
  }
  </code></pre>
  
  <p>Do I need a return after throwing the exception?</p>
  
  <p>What is the case in c#?</p>