title: .NET threading returns value?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1314155/returning-a-value-from-thread">Returning a value from thread?</a>  </p>
  </blockquote>
  
  
  
  <p>I have this code:</p>
  
  <pre><code>//Asynchronously start the Thread to process the Execute command request.
  Thread objThread = new Thread(new ParameterizedThreadStart(ExecuteCommandSync));
  //Make the thread as background thread.
  objThread.IsBackground = true;
  //Set the Priority of the thread.
  objThread.Priority = ThreadPriority.AboveNormal;
  //Start the thread.
  objThread.Start(command);
  </code></pre>
  
  <p>The problem is that <code>ExecuteCommandSync</code> returns a string.</p>
  
  <p>How can i capture the string that is returned and return it?</p>