3
Reply

Getting Type from a static method

chrishx3000

chrishx3000

Nov 28 2003 9:59 AM
1.8k
Hello, I'm trying to get the current Type of a class when executing a static method. That is, public class DbConnector { public static void method() { Type t = this.GetType(); // Will not work, since this is not allowed } } Any ideas how to go about doing this? Thanks, chris

Answers (3)