Пример #1
0
        private static object GetPropValue(Payment user, string prop)
        {
            PropertyInfo propInfo = s_properties[prop];

            return(propInfo.GetGetMethod(false).Invoke(user, null));
        }
Пример #2
0
 public static void Apply(this Payment payment, string op, string prop)
 {
     payment.NextAction = s_operators[op](GetPropValue(payment, prop));
 }