Answers for "string get property name c#"

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 "string get property name c#"

C# Answers by Framework

Browse Popular Code Answers by Language