'How to check whether an ACTION is a specific Method
How can I compare an Action with a specific Method?
void MyMethod(string param1, int param2) { }
Action theAction = () => MyMethod(string, int)
MyQueue.Enqueue(theAction)
if (MyQueue.Peek() == MyMethod()) { //Do Thing }
How do I do that last line and have it compile? I dont need to check parameters, just the method itself, but it won't let me do this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
