Hello
I’m testing the introspection, and came across something weird. I want to get the Value of a Property using Introspection. The code is this:
[code]Dim introInfo As Introspection.TypeInfo
introInfo = Introspection.GetType(thisSystemSettings)
For Each currentPropertyInfo As Introspection.PropertyInfo In introInfo.GetProperties
Dim test As Object = currentPropertyInfo.Value(thisSystemSettings)
Next[/code]
Why is it necesary to do currentPropertyInfo.Value(INSTANCE) when I already defined the Instance in introInfo (Introspection.GetType(INSTANCE))
Isn’t that useless? It would be very weird to get PropertyInfo from a certain Instance, but the Value of a totally other Object/Instance, no?
If somebody knows why it is handled this way, please tell me!
Thanks