title: Unreachable code detected
body: <p>I'm getting a "Unreachable code detected" message in Visual Studio at the point con.close() in my code below. Can you spot what I've done wrong?</p>
  
  <pre><code>private int chek1(String insert)
  {
      OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=d:\\sdb.mdb");
      OleDbCommand com = new OleDbCommand("select count(*) from sn where sn='" + insert + "\'", con);           
      con.Open();
  
      int po = (int)com.ExecuteScalar();           
      if (po &gt; 0)
          return 1;
      else
          return 0;
      con.Close();    
  }
  </code></pre>