練習用です。いろんなものがごちゃまぜです。
| @@ -0,0 +1,18 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Text; | |
| 5 | +using System.Threading.Tasks; | |
| 6 | + | |
| 7 | +namespace chap04 | |
| 8 | +{ | |
| 9 | + class list1 | |
| 10 | + { | |
| 11 | + public static void start(string[] args) | |
| 12 | + { | |
| 13 | + int[] a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
| 14 | + var b = a.Where((c) => {return c % 2 == 0; }); | |
| 15 | + foreach (var item in b) Console.Write(item); | |
| 16 | + } | |
| 17 | + } | |
| 18 | +} |
| @@ -0,0 +1,17 @@ | ||
| 1 | +using System; | |
| 2 | +using System.Collections.Generic; | |
| 3 | +using System.Linq; | |
| 4 | +using System.Text; | |
| 5 | +using System.Threading.Tasks; | |
| 6 | + | |
| 7 | +namespace chap04 | |
| 8 | +{ | |
| 9 | + class Program | |
| 10 | + { | |
| 11 | + static void Main(string[] args) | |
| 12 | + { | |
| 13 | + list1.start(args); | |
| 14 | + Console.ReadKey(); | |
| 15 | + } | |
| 16 | + } | |
| 17 | +} |
| @@ -0,0 +1,36 @@ | ||
| 1 | +using System.Reflection; | |
| 2 | +using System.Runtime.CompilerServices; | |
| 3 | +using System.Runtime.InteropServices; | |
| 4 | + | |
| 5 | +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
| 6 | +// アセンブリに関連付けられている情報を変更するには、 | |
| 7 | +// これらの属性値を変更してください。 | |
| 8 | +[assembly: AssemblyTitle("chap04")] | |
| 9 | +[assembly: AssemblyDescription("")] | |
| 10 | +[assembly: AssemblyConfiguration("")] | |
| 11 | +[assembly: AssemblyCompany("")] | |
| 12 | +[assembly: AssemblyProduct("chap04")] | |
| 13 | +[assembly: AssemblyCopyright("Copyright © 2016")] | |
| 14 | +[assembly: AssemblyTrademark("")] | |
| 15 | +[assembly: AssemblyCulture("")] | |
| 16 | + | |
| 17 | +// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから | |
| 18 | +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
| 19 | +// その型の ComVisible 属性を true に設定してください。 | |
| 20 | +[assembly: ComVisible(false)] | |
| 21 | + | |
| 22 | +// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります | |
| 23 | +[assembly: Guid("b5e67fbc-b947-4ec9-860e-9fc5aae0e874")] | |
| 24 | + | |
| 25 | +// アセンブリのバージョン情報は次の 4 つの値で構成されています: | |
| 26 | +// | |
| 27 | +// メジャー バージョン | |
| 28 | +// マイナー バージョン | |
| 29 | +// ビルド番号 | |
| 30 | +// Revision | |
| 31 | +// | |
| 32 | +// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を | |
| 33 | +// 既定値にすることができます: | |
| 34 | +// [assembly: AssemblyVersion("1.0.*")] | |
| 35 | +[assembly: AssemblyVersion("1.0.0.0")] | |
| 36 | +[assembly: AssemblyFileVersion("1.0.0.0")] |