1
Answer

Getting Delegate Method

Ask a question
onez

onez

19y
1.8k
1
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)