title: Thread safety and System.Text.Encoding in C#
body: <p>Is it safe to use the same <code>Encoding</code> object from different threads?</p>
  
  <p>By "using" I mean, calling <code>Encoding.GetString()</code>, <code>Encoding.GetBytes()</code> and write some XML with an <code>XmlWriter</code> (created by something like <code>XmlWriter.Create(myStream, new XmlWriterSettings() { Encoding = myEncoding })</code>.</p>
  
  <p>The msdn site states that "Any instance members are not guaranteed to be thread safe".</p>
  
  <p>So, how can I safely write two XML documents concurrently? (thank you!!)</p>