Answers for "c# object get value by property name"

C#
0

c# get property using string

public static object GetPropValue(object src, string propName)
 {
     return src.GetType().GetProperty(propName).GetValue(src, null);
 }
Posted by: Guest on July-07-2020

Code answers related to "c# object get value by property name"

C# Answers by Framework

Browse Popular Code Answers by Language