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

c# - HttpResponseMessage System.InvalidOperationException -

sql - Postgresql error: "failed to find conversion function from unknown to text" -