c# Delegate and Dispatcher problem
<p>i get this error when trying this:</p>

<blockquote>
  <p>ERROR method name expected. </p>
</blockquote>

<p>How should i do to correct the problem</p>

<pre><code>delegate void DelegateFillList(DeliveryDoc[] deliveryDocs);
private void FillListViewAssignment(DeliveryDoc[] docs) {
    if(lvMyAssignments.Dispatcher.CheckAccess()) {
        lvMyAssignments.ItemsSource = docs;
        lvAllOngoingAssignments.ItemsSource = docs;

        if(m_tempDeliveryDocs != null) {
            txtblockHandOverCount.Text = m_tempDeliveryDocs.Length.ToString();
        }

    } else {
        lvMyAssignments.Dispatcher.BeginInvoke(
            new DelegateFillList(FillListViewAssignment(docs)), null);
    }
}
</code></pre>
