C# - Send UI reference to Task.Factory.StartNew();? <p>How would you send/pass instance references to a new task?</p> <p>Let's say I've got this:</p> <pre><code> public BlockingCollection&lt;string&gt; blockingCollection = new BlockingCollection&lt;string&gt;(); textBox_txt.Text = "Result: "; public Task t = Task.Factory.StartNew(() =&gt; { foreach (string value in *???1*.blockingCollection.GetConsumingEnumerable()) { *???1*.blockingCollection.Take() [...bla...] *???2*.Invoke(new updateTextBox_txtCallback(*???2*.updatetextBox_txt) , new object[] { "THE RESULT!\r\n" }); } }); </code></pre> <p>I'm guessing that somewhere in here <code>StartNew(() =&gt;</code> I have to pass the references to the blockingContent and to the textBox. I've looked around but couldn't figure out the syntax. (it's quite hairy)</p> <p>Help, please.</p> <p>[Edit] So, if I call a static object from withing the Task, it obviously works; but I need the task to work with instances; namely the blockingCollection and the updateTextBox_txtCallback Invoke.</p>