在使用这种方法时:
Application.Current.Dispatcher.Invoke( someDelegate , parameters);
我需要创建点名人。 我知道如何设立该代表,然后以这一职能通过该代表。 代表只是一种方法的指向者,如果我能通过这一提法,那将是空洞的。 换言之,我不知道是否有可能照样:
Application.Current.Dispatcher.Invoke( someMethod.reference, parameters);
public void someMethod(object o)
{
// ....
}
Or something like:
Application.Current.Dispatcher.Invoke( ()=> {
//method
}, parameters);
I require to use multiple threads therefore it will be nice if I do not have to create that many delegates. It will be nice if I could create them on the fly inside of the method...