Answers for "c# get attribute by string"

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

C# Answers by Framework

Browse Popular Code Answers by Language