public static object GetObjectProperty(object o, string property)
{
return o.GetType().GetProperty(property).GetValue(o, null);
}AKA the simplest reflection you can use. Right?
(not really)
public static object GetObjectProperty(object o, string property)
{
return o.GetType().GetProperty(property).GetValue(o, null);
}
0 comments:
Post a Comment