c# - new Thread() Parameterized start in WPF -


i've been doing in winforms forever :

new thread((query_) => {     functions.updateinsert(query_); }).start(query); 

but when try in wpf, ide tells me "delegate 'system.threading.threadstart' not take 1 arguments."

is done differently in wpf?

any appreciated. thanks!

try using way :

thread t = new thread(()=> functions.updateinsert(query)); t.start(); 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -