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 |
0 | 1 |
/** |
2 |
* Program.cs |
|
3 |
* |
|
4 |
* @author Markus Bröker<broeker.markus@googlemail.com> |
|
5 |
* @copyright Copyright(C) 2017 4Customers UG |
|
6 |
* |
|
7 |
*/ |
|
8 |
using System; |
|
9 |
using System.Collections.Generic; |
|
10 |
using System.Linq; |
|
11 |
using System.Text; |
|
12 |
using System.Threading.Tasks; |
|
13 |
||
14 |
using static Sales.Payment; |
|
15 |
||
16 |
namespace Sales |
|
17 |
{ |
|
18 |
class Program |
|
19 |
{ |
|
20 |
static void Main(string[] args) |
|
21 |
{ |
|
22 |
Console.OutputEncoding = Encoding.Default; |
|
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 | 26 |
} |
27 |
} |
|
28 |
} |