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:
x
is initialized via the functionBar
.y
isn't initialized via the functionBar
.
Is there any way to do this?
Aucun commentaire:
Enregistrer un commentaire