How to use Delegate in C# for Dictionary<int, List<string>>
Posted
by Emanuel
on Stack Overflow
See other posts from Stack Overflow
or by Emanuel
Published on 2010-04-24T09:05:58Z
Indexed on
2010/04/24
9:13 UTC
Read the original article
Hit count: 241
The code:
private delegate void ThreadStatusCallback(ReceiveMessageAction action, Dictionary<int, List<string>> message);
...
Dictionary<int, List<string>> messagesForNotification = new Dictionary<int, List<string>>();
...
Invoke(new ThreadStatusCallback(ReceivesMessagesStatus), ReceiveMessageAction.Notification , messagesForNotification );
...
private void ReceivesMessagesStatus(ReceiveMessageAction action, object value)
{
...
}
How can I send the two variable of type ReceiveMessageAction
respectively Dictionary<int, List<string>>
to the ReceivesMessagesStatus
method.
Thanks.
© Stack Overflow or respective owner