練習用です。いろんなものがごちゃまぜです。
| @@ -0,0 +1,22 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Text; | |
| 5 | +using System.Threading.Tasks; | |
| 6 | + | |
| 7 | +namespace chap02 | |
| 8 | +{ | |
| 9 | + class list6 | |
| 10 | + { | |
| 11 | + public static void start(string[] args) | |
| 12 | + { | |
| 13 | + int x = 123; | |
| 14 | + Action act = () => | |
| 15 | + { | |
| 16 | + x *= 2; | |
| 17 | + }; | |
| 18 | + act(); | |
| 19 | + Console.WriteLine(x); | |
| 20 | + } | |
| 21 | + } | |
| 22 | +} |
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | { |
| 11 | 11 | static void Main(string[] args) |
| 12 | 12 | { |
| 13 | - list5.start(args); | |
| 13 | + list6.start(args); | |
| 14 | 14 | Console.ReadLine(); |
| 15 | 15 | |
| 16 | 16 | } |