Could someone please help me with the following problem:
There are two classes MainForm and LWriter. Below is a method from the LWriter that in addition to writing
As suggested by Sonu, delegate can be used for Thread safe calls, and you can use Linq to shorten the code:
delegate
this.BeginInvoke( (Action) delegate () { //code to update UI });
See this link for more information.