R
Rainer Queck
Hi NG,
I have a generic list of Type where I hold some class types like:
List<Type> classList = new List<Type>();
classList.Add(typeof(Telegram1);
classList.Add(typeof(Telegram2);
......
Each of my Telegram<x> classes has a static Member "TlgNo";
With out building a instance of the class, I can get the TlgNo like
int tlgNo = Telegram1.TlgNo;
Is there a way to get this static member of the class from my list?
What I would like to do is:
for(int i=0; i<classList.Count; i++)
{
aTlgNo = classList.TlgNo;
......
}
Thanks for hints,
Rainer Queck
I have a generic list of Type where I hold some class types like:
List<Type> classList = new List<Type>();
classList.Add(typeof(Telegram1);
classList.Add(typeof(Telegram2);
......
Each of my Telegram<x> classes has a static Member "TlgNo";
With out building a instance of the class, I can get the TlgNo like
int tlgNo = Telegram1.TlgNo;
Is there a way to get this static member of the class from my list?
What I would like to do is:
for(int i=0; i<classList.Count; i++)
{
aTlgNo = classList.TlgNo;
......
}
Thanks for hints,
Rainer Queck