intializing variables in c#
<p>I'm a bit confused.</p>

<p>I have the following code:</p>

<pre><code>public class MyClass
{
  public string DoSomething(string TheString)
  {
     int TheID;
     string TheString = "";
  }
}
</code></pre>

<p>This works fine; it compiles. However, why doesn't this work?</p>

<pre><code>public class MyClass
{
  public string DoSomething(string TheString)
  {
     private int TheID {get;set;}
     private string TheString {get;set;}
  }
}
</code></pre>

<p>I want to make these variables private. What do I need to change?</p>
