title: C# json deserialize to (this) inside object
body: <p>I am trying to get an object to deserialize into itself. I have tride the following:-</p>
  
  <pre><code>   public class JobID
      {
          public string jobname;
          public string first;
          public string second;
          public string third;
          public string clientName;
          public string workflow;
      }
  
      public void load(string fname)
      {
          string s = File.ReadAllText(fname);
          this = JsonConvert.DeserializeObject&lt;JobID&gt;(s);    
      }
  </code></pre>
  
  <p>But the word this is 'read only' according to the error I get.
  I have used 'this.jobname = "X";' before so clearly 'this' is not read only.
  I am using Newtonsof.Json.</p>