練習用です。いろんなものがごちゃまぜです。
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | { |
| 11 | 11 | static void Main(string[] args) |
| 12 | 12 | { |
| 13 | - list2.start(args); | |
| 13 | + list3.start(args); | |
| 14 | 14 | Console.ReadLine(); |
| 15 | 15 | |
| 16 | 16 | } |
| @@ -0,0 +1,23 @@ | ||
| 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 list3 | |
| 10 | + { | |
| 11 | + public static void start(string[] args) | |
| 12 | + { | |
| 13 | + Console.WriteLine("Hello".ToString()); | |
| 14 | + } | |
| 15 | + } | |
| 16 | + static class stringEx | |
| 17 | + { | |
| 18 | + public static string ToString(this string s) | |
| 19 | + { | |
| 20 | + return s.ToUpper(); | |
| 21 | + } | |
| 22 | + } | |
| 23 | +} |