> >In a WPF Application object >Dispatcher.Thread.CurrentCulture > >In a class >System.Threading.Thread.CurrentThread.CurrentCulture > >>
System.Diagnostics.Debug.WriteLine((Dispatcher.Thread == System.Threading.Thread.CurrentThread).ToString()); BackgroundWorker b = new BackgroundWorker(); b.DoWork += new DoWorkEventHandler(b_DoWork); b.RunWorkerAsync(); void b_DoWork(object sender, DoWorkEventArgs e) { System.Diagnostics.Debug.WriteLine((Dispatcher.Thread == System.Threading.Thread.CurrentThread).ToString()); }