Answers for "how to access properties of object in class c#"

C#
0

access object property C#

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

object value = prop.GetValue(yourInstance);
...
prop.SetValue(yourInstance, "value");
Posted by: Guest on May-06-2020

Code answers related to "how to access properties of object in class c#"

C# Answers by Framework

Browse Popular Code Answers by Language