L
Lieven De Foor
Guest
DenDuze , did you add "OR Flags:Instance OR Flags
eclaredOnly" as well? These are needed to get the required properties. This just gives you a Properties array. If you want to get the actual values, you need to loop over all items and call Get(Object) on them, where Object is your actual object instance of which you want to get the property values... You are not calling the GetProperties() from "this class". You're calling it on the "Class" of the current instance of your object, which is not your object itself, hence you have no access to its private properties. Using reflection you can get them, if you provide the correct parameters to GetProperties().
Continue reading...

Continue reading...