3
Answers

Getting Type from a static method

chrishx3000

chrishx3000

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