onez

onez

  • NA
  • 73
  • 0

Getting Delegate Method

Nov 8 2004 9:27 PM
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)