0

I want to call "Payment010" method with different every time i call, example at the iteration it suppose to be called as Payment010 and at the second iteration i wanted to call as Payment011, Is that possible? Much appreciated for help in advance!

public class PaymentChargeCreditCard
{
    public async Task Payment010()
    {

        await this.MakePayment(
                orderNo,
                shipDate);
    }
}
Kal
  • 3
  • 3

1 Answers1

0

C# reflection can call a function from string.

This might be what you want.

Calling a function from a string in C#

someone
  • 122
  • 2
  • 9