How to get property from type object , which is a wrapper of type with this property?
I did so:
object o = SelectedObject; Type t = o.GetType(); System.Reflection.PropertyInfo info = t.GetProperty("X"); decimal? xx = (decimal?)info.GetValue(o, null);
No comments:
Post a Comment