Sales/Program.cs
author Markus Bröker<broeker.markus@googlemail.com>
Wed, 29 Mar 2017 12:05:27 +0200
changeset 1 80c685d55d63
parent 0 cfa10fbf52b3
child 2 0907765a8b2e
permissions -rwxr-xr-x
Sinnvolles Beispiel für Function-Pointer in C#

/**
 * Program.cs
 * 
 * @author       Markus Bröker<broeker.markus@googlemail.com>
 * @copyright    Copyright(C) 2017 4Customers UG
 * 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using static Sales.Payment;

namespace Sales
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.OutputEncoding = Encoding.Default;

            Invoice invoice = new Sales.Invoice(599.99, PaymentType.LATER);
            Console.WriteLine("Die Endsumme beträgt {0:C}", invoice.getFinalResult());		           
        }
    }
}