Hi,
I have method that should according an input argument (a collection) call
the appropriate callback delegate.
I am using a list, where I store a struct with fields: delegate, input
argument.
To invoke a proper delegate I have to go through this dictionary, compare
input argument and call delegate if arguments are match.
My question is:
1/ Is there any better way to do it? I don't feel very comfortable with this
solution.
2/ Another method has an argument delegate. This delegate should be removed
from the list and disposed. How will I find the correct delegate to delete?
There is Delegate.Equals method. Again, somhow it feels there should be a
more elegant solution.
Any idea to make it better? I can't use events to call appropriate delegates.
Thanks,
Lubomir