beginner's c# class question
<pre><code>public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void txtTestPrime_Click(object sender, EventArgs e)
        {
            TestPrime myNumber = new TestPrime();
            lblAnswer.Text = 
                myNumber.TestPrime(ToInt16(txtTestPrime.Text)) ? "it is prime!" : "it is NOT prime!";
        }

    }
    public class TestPrime(int number)
    {
        bool prime;


    }
</code></pre>

<p>it doesnt like this line:</p>

<pre><code>public class TestPrime(int number)
</code></pre>

<p>i am getting this error: invalid token '(' in class, struct, or interface member declaration</p>

<p>also getting <code>expect { and ;</code> on that line </p>

<p>also on this line:</p>

<pre><code>myNumber.TestPrime(ToInt16(txtTestPrime.Text)) ? "it is prime!" : "it is NOT prime!"; 
</code></pre>

<p>im getting Error    4   'WindowsFormsApplication1.TestPrime' does not contain a definition for 'TestPrime' and no extension method 'TestPrime' accepting a first argument of type 'WindowsFormsApplication1.TestPrime' could be found (are you missing a using directive or an assembly reference?)</p>

<p>perhaps it is one main thing that i am doing wrong. please help!</p>
