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#
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     1
/**
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     2
 * Program.cs
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     3
 * 
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     4
 * @author       Markus Bröker<broeker.markus@googlemail.com>
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     5
 * @copyright    Copyright(C) 2017 4Customers UG
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     6
 * 
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     7
 */
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     8
using System;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
     9
using System.Collections.Generic;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    10
using System.Linq;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    11
using System.Text;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    12
using System.Threading.Tasks;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    13
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    14
using static Sales.Payment;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    15
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    16
namespace Sales
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    17
{
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    18
    class Program
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    19
    {
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    20
        static void Main(string[] args)
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    21
        {
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    22
            Console.OutputEncoding = Encoding.Default;
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    23
1
80c685d55d63 Sinnvolles Beispiel für Function-Pointer in C#
Markus Bröker<broeker.markus@googlemail.com>
parents: 0
diff changeset
    24
            Invoice invoice = new Sales.Invoice(599.99, PaymentType.LATER);
80c685d55d63 Sinnvolles Beispiel für Function-Pointer in C#
Markus Bröker<broeker.markus@googlemail.com>
parents: 0
diff changeset
    25
            Console.WriteLine("Die Endsumme beträgt {0:C}", invoice.getFinalResult());		           
0
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    26
        }
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    27
    }
cfa10fbf52b3 Initialer Commit
Markus Bröker<mbroeker@4customers.de>
parents:
diff changeset
    28
}