I would like to use reflection to investigate the private fields of an object as well as get the values in those fields but I am having difficult finding the syntax for it.
For example, an object has 6 private fields, my assumption is that I could fetch their FieldInfo with something like
myObject.GetType().GetFields(BindingFlags.NonPublic)
but no dice - the call returns an array of 0.
Whats the correct syntax to access fields?