Type.GetFields() - only returning "public const" fields
Posted
by Jon Kruger
on Stack Overflow
See other posts from Stack Overflow
or by Jon Kruger
Published on 2009-08-17T12:51:53Z
Indexed on
2010/05/10
21:04 UTC
Read the original article
Hit count: 254
I want to call Type.GetFields() and only get back fields declared as "public const". I have this so far...
type.GetFields(BindingFlags.Static | BindingFlags.Public)
... but that also includes "public static" fields.
© Stack Overflow or respective owner