Top "Propertyinfo" questions

Reflection - get attribute name and value on property

I have a class, lets call it Book with a property called Name. With that property, I have an attribute …

c# reflection propertyinfo
Setting a property by reflection with a string value

I'd like to set a property of an object through Reflection, with a value of type string. So, for instance, …

c# reflection type-conversion propertyinfo setvalue
Get string name of property using reflection

There is a whole wealth of reflection examples out there that allow you to get either: 1. All properties in a …

c# reflection propertyinfo
How do you get the Value of a property from PropertyInfo?

I've got an object that has a collection of properties. When I get the specific entity I can see the …

c# propertyinfo
Using reflection read properties of an object containing array of another object

How can I read the properties of an object that contains an element of array type using reflection in c#. …

c# arrays reflection object propertyinfo
PropertyInfo.GetValue() "Object does not match target type."

I'm digging into Reflection for the first time and I'm truely stuck. I've googled everything I can think of. I'm 90% …

vb.net reflection propertyinfo
Why is TargetInvocationException treated as uncaught by the IDE?

I have some code that is using reflection to pull property values from an object. In some cases the properties …

c# exception reflection propertyinfo targetinvocationexception
Create new PropertyInfo object on the fly

This is my very first post, and although I have searched in topics related to my issue to some extent, …

c# object reflection propertyinfo
Setting value in an array via reflection

Is there a way to set a single value in an array property via reflection in c#? My property is …

c# arrays reflection propertyinfo setvalue
How to set Vaues to the Nested Property using C# Reflection.?

I am trying to set a value to a Nested Property of Class dynamically using reflection. Could anyone help me …

c# reflection propertyinfo