Property with and without { get; set; }
<p>I am new to C#</p>

<p>What is the difference between</p>

<pre><code>public string MyValue;
</code></pre>

<p>and</p>

<pre><code>public string MyValue { get; set; }
</code></pre>

<p>I always assumed that both were same. Something was not working in my code. Using the latter form made it work. But don't know what is the difference. Can you help?</p>

<p>Thanks</p>
