function pointer

Aug 28 2009 5:18 AM
I am using a loop like the one below:
foreach(ProcessThread p in Process.GetCurrentProcess().Threads)
intPtr address = p.StartAddress;

and I want to compare this address to a method's address
which I have used to start a thread.
the question is how to get the address of a method in the format of int or intPtr?

Answers (1)