1
Reply

Getting Delegate Method

onez

onez

Nov 8 2004 9:27 PM
1.8k
In my loop I want to determine which method has been assigned to the delegate. I don't know how to do it so I turn the delegate.method into a string and compare names. if (TotalIdentSearchHandler1.Method.ToString().Contains("underlinemethod")) { Console.WriteLine("Total method == underline method"); } How can I use better programming to determine exactly if it is the method? this doesent work: if (TotalIdentSearchHandler1.Method == SearchClassInstance._underlinemethod)

Answers (1)