private static object GetValue(object bindableObject, PropertyInfo pi) { return pi == null ? null : pi.GetValue(bindableObject, null); }