Suppose I have a class Foo like below:
class Foo
{
public static int Bar()
{
return 1;
}
public static int x = Bar();
public static int y = 2;
}
I want to use reflection to know that:
xis initialized via the functionBar.yisn't initialized via the functionBar.
Is there any way to do this?
Aucun commentaire:
Enregistrer un commentaire