PropertyInfo.GetValue()------------------ Reflection
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
inlight me!!
EASY COME EASY GO
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
This exception can be thrown in two cases: - The property is not static and you pass null to the target parameter. - The property is not static but the object you pass as target does not match the target type. As you say you want to "get the property value of some class" I guess your case is the first one. If a property is not static, you can get the property value of an instance of a class.
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
Show your code.
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
To better clarification you need to show code. :)
-
i am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
Some of[^] the errors that reflection can throw while using GetValue(). Its impossible for anyone to help you until you post some code here.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.
-
Some of[^] the errors that reflection can throw while using GetValue(). Its impossible for anyone to help you until you post some code here.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.
-
I was doing assigng some wron object inside GetValue() PropertyInfo.GetValue(classobj,null) classobj should be the object of the class which we want to get property thanks ...
Ehm... Does that mean that samjog_c and arun_pk are actually the same user?