what is wrong with this c# code?
<p>Please tell me whats wrong with this c# code..</p>

<pre><code>public bool CloseCOMPort()
    {
        try
        {
            bool isClosed = false;
            if (oSerialPortMisc != null &amp;&amp; oSerialPortMisc.IsOpen)
            {
                oSerialPortMisc.Close();
                isClosed=true;

            }
            else
            {
                isClosed = false;

            }
            return isClosed;
        }
        catch (Exception exp)
        {

        }
    }
</code></pre>

<p>When I compile this code it gives error.. "not all code paths return a value".
I dont know whts wrong here. PLease help.. 
Thanxxx...:)</p>
