C
ChristianREMOVE.EitnerTHIS
Hi people,
I have a class which defines some "public static readonly string"
fields. If I say
FieldInfo[] fieldInfos = typeof(DaClass).GetFields();
these fields are reported by reflection, whereas with
fieldInfos = typeof(DaClass).GetFields(BindingFlags.Static);
they are not given. So what's the matter here? Aren't the fields "real"
static fields or what?
Thanks for your consideration,
Christian
I have a class which defines some "public static readonly string"
fields. If I say
FieldInfo[] fieldInfos = typeof(DaClass).GetFields();
these fields are reported by reflection, whereas with
fieldInfos = typeof(DaClass).GetFields(BindingFlags.Static);
they are not given. So what's the matter here? Aren't the fields "real"
static fields or what?
Thanks for your consideration,
Christian