c# - Access to ReflectedType of PropertyInfo when unboxing from Object -


Let's assume that I have some properties built from the Confirmed Object Reflection process.

Normally I could have internal objects through my reflexedtype property but if it was boxed in the object then I could not access it.

  var x = property.ReflectedType // works as a work work var y = (object properties) .ReflectedType // will not work   

How do I access the Refinanttype property of the property that was boxed for the object?

If you are sure that your object reference PropertyInfo , then return to PropertyInfo and you can use the property.

  var z = (Property Info) y). Refacted Type   

Edit about your additional comment on quesion: If you still can use your property variable where you want to do this, then just use that. .. I think that you are confused about something here, but you should provide more information, because no one can help you unless you do so.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -