New to C#, why does Property Set throw StackOverflow exception?
<p>I am new to c# just trying to mess with it to teach it to myself. I know java and would normally put in getter/setter methods. I am interested in doing it with the following code, but it throws a stack overflow. What am I doing wrong</p>

<p>Calling Code</p>

<p><pre><code>c.firstName = "a";</pre></code></p>

<p>Property Code  </p>

<p><pre><code>        public String firstName;
        {
            get
            {
                return firstName;
            }
            set
            {
                firstName = value;
            }
        }</pre></code></p>
