title: Is readonly variable thread safe?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8286222/is-a-readonly-field-in-c-sharp-thread-safe">Is a readonly field in C# thread safe?</a>  </p>
  </blockquote>
  
  
  
  <p>A quite simple program</p>
  
  <pre><code>private readonly string _data1;
  private readonly int _data2;
  private readonly MyAnotherClass _data3;
  
  public MyClass(string data1, int data2, MyAnotherClass data3)
  {
      _data1 = data1;
      _data2 = data2;
      _data3 = data3;
  }
  </code></pre>
  
  <p>Are <code>_data1,  _data2 and _data3</code> thread safe?</p>