Hi,
I'm trying to get the Variety property from an instance of an
XmlSchemaDatatype. The property is internal. I'm trying to use reflection to
access it as follows.
object variety = datatype.GetType().GetProperty("Variety",
BindingFlags.FlattenHierarchy | BindingFlags.GetProperty |
BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public );
It returns null. However in the locals window I can see the Variiety
property is 'Atomic'. What am I doing wrong? I've tried a number of
combinations of BindingFlags to no avail.
Regards
Gar