-
the function aim to serialize an object to json string use System.Reflect
i want to get value from the object , but the code encounter error
my snippet like belowing
console output
why object type mismatch the function GetValue args[0] ?? i am very confused , the object is inhert from System.Object .
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think you need to select the correct overload. I don't see a |
Beta Was this translation helpful? Give feedback.
-
propertyInfo.tryMethod("GetValue" , 0).invoke(object ); |
Beta Was this translation helpful? Give feedback.
propertyInfo.tryMethod("GetValue" , 0).invoke(object );