Unity error CS0103: The name `' does not exist in the current context
<p>I have a generic class like this:</p>

<pre><code>public class Connection&lt;T&gt; where T: Stream 
{
    protected T _stream;
    protected TcpClient _client;

    public void Connect(){/*Do somthing*/}
    public void Disconnect(){/*Do somthing*/}

    public void Reconnect()
    {
        Disconnect();
        Connect();
    }
}
</code></pre>

<p>I use VisualStudio as editor, it has no error but in unity editor console it says:</p>

<blockquote>
  <p>error CS0103: The name 'Disconnect' does not exist in the current context</p>
</blockquote>

<p>and</p>

<blockquote>
  <p>error CS0103: The name 'Connect' does not exist in the current context</p>
</blockquote>

<p>The line of the error is in the <code>Reconnect()</code> function.</p>

<p><strong>If I remove generic from this class, it hasn't any error.</strong>
Is this a bug or I missed somthing?</p>