Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

access object property C#

System.Reflection.PropertyInfo prop = typeof(YourType).GetProperty("PropertyName");

object value = prop.GetValue(yourInstance);
...
prop.SetValue(yourInstance, "value");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #object #property
ADD COMMENT
Topic
Name
4+8 =