Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get property using string

 public static object GetPropValue(object src, string propName)
 {
     return src.GetType().GetProperty(propName).GetValue(src, null);
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #property #string
ADD COMMENT
Topic
Name
7+8 =