Is it possible to access the fields and or constants of an abstract class? Suppose I have the code:
public abstract class A
{
private int A;
private int B;
public const int months = 12;
public int AProp
{
get{ return A; }
set{ A = value; }
}
public abstract void DoSomething();
}
Is it possible to retrieve the fields and the constant by reflection? If yes, can you please suggest how? And, is there a better way to do this?