create a set get class and pass parameter in constructor
<p>I am new to asp.net &amp; trying create a object, but there is a syntax error</p>

<pre><code>public class pair
{

    private string key;
    private string value;

    public pair(string key, string value)
    {
        this.key = this.setKey(key);
        this.value = this.setValue(value);
    }

    private void setKey (string key) {
        this.key = key;
    }

    public string getKey()
    {
        return this.key;
    }

    private void setValue(string value)
    {
        this.value = value;
    }

    public string getValue()
    {
        return this.value;
    }

}
</code></pre>

<p>these two lines</p>

<pre><code>this.key = this.setKey(key);
this.value = this.setValue(value);
</code></pre>

<p>have something wrong, anyone know the problems?</p>
