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,
chrisGetting Type from a static method
Hello,
I'm trying to get the current Type of a class when executing a static method. That is,
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

andrewRank #6,347 · 269 reputationPosted Nov 28, 2003, 5:06 AM EST
chrishx30007 reputationPosted Nov 28, 2003, 6:55 AM EST
idutta12 reputationPosted Nov 30, 2003, 10:11 AM EST