예제 #1
0
        private static void Main(string[] args)
        {
            ///
            /// Uncomment one of the examples below to watch its output.
            /// Inspect the methods to learn about API endpoints and returns ..
            ///
            /// For more:
            ///     htttps://moyasar.com/docs/api/?csharp
            ///

            var examples = new Examples();

            // Credit Card Experiement
            examples.CreateCreditCardPayment();

            // Sadad Experiment
            examples.CreateSadadPayment();

            // List Payments
            examples.ListOfPayment();

            // List All Payments
            examples.ListAllPayments();

            // Fetch Payment
            examples.PaymentByID();

            // Refund Payment
            examples.RefundPayment();

            // Create Invoice
            examples.CreateInvoice();

            // List Invoices
            examples.ListInvoices();

            // List All Invoices
            examples.ListAllInvoices();

            // Fetch Invoice
            examples.FetchInvoice();

            Console.Read();
        }
예제 #2
0
        public int Plus(int a, int b)
        {
            //this.Print(a, b);

            var p1 = new Point(a, b);
            var p2 = p1;

            //var arr = new int[a, 3, 4];
            //var arr2 = new int[2][][];

            var obj = new Examples();

            obj.F1 = 6 * obj.F1 + Examples.F2;

            var array   = new int[3];
            var tamanio = array.Length;

            array[a] = b;
            a        = array[b];

            return(a + b);
        }