private static object GetPropValue(Payment user, string prop) { PropertyInfo propInfo = s_properties[prop]; return(propInfo.GetGetMethod(false).Invoke(user, null)); }
public static void Apply(this Payment payment, string op, string prop) { payment.NextAction = s_operators[op](GetPropValue(payment, prop)); }