E
Eric Le Guehennec
Hello,
I am trying to get the Type of a class in a static method.
Here is a sample of what I would like to do (c#):
private static void Dummy()
{
Type t = this.GetType()
}
Because it is a static method, the 'this' keyword isn't usable.
I know I could use GetType() from the name of the class, but it's not
possible in my case as I'd like to get the name of the child class
from a abstract parent class.
Is it possible ?
Thanks for your help
I am trying to get the Type of a class in a static method.
Here is a sample of what I would like to do (c#):
private static void Dummy()
{
Type t = this.GetType()
}
Because it is a static method, the 'this' keyword isn't usable.
I know I could use GetType() from the name of the class, but it's not
possible in my case as I'd like to get the name of the child class
from a abstract parent class.
Is it possible ?
Thanks for your help