public void loadtemplist(DataTable dt)
{
this.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle,
(Delegate) (() => this.loadtemplist1(dt)) //error
);
}
and
public void loadtemplist1(DataTable dt)
{
-----
-----
}
the above code throws Cannot convert lambda expression to type 'System.Delegate' because it is not a delegate type