This is the problem:
new DelegateFillList(FillListViewAssignment(docs)
You cannot create a delegate this way. You need to provide a group of methods, which is just the name of the method:
lvMyAssignments.Dispatcher.BeginInvoke (new DelegateFillList(FillListViewAssignment), new object[]{docs});
Alternatively, you can do this in two statements:
DelegateFillList fillList = FillListViewAssignment; lvMyAssignments.Dispatcher.BeginInvoke(fillList, new object[]{docs});
The reason for the extra wrapping array is that you have only one argument, which is an array - you don't want it to try to interpret this as a bunch of different arguments.
source share