How to use Delegate in C# for Dictionary<int, List<string>>
- by Emanuel
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.