Mar 19, 2010

Simple Method Invoker Thread Safe Code

                string ip = string.Empty;
                MethodInvoker method = delegate
                {
                    ip = txtOutgoingIP.Text;
                };

                if (InvokeRequired)
                    BeginInvoke(method);
                else
                   method.Invoke(); 


Bookmark and Share

No comments:

Post a Comment