More Related Content
What's hot (20)
PDF
Angular ユ`ザ`なら兀さえておきたい TypeScript と Visual Studio Code の児Aと試喘Akira Inoue?
PDF
[DO02] Jenkins PipelineとBlue Oceanによる、フルスクラッチからの@A議デリバリde:code 2017?
PPTX
g樹 Web App for Containers! ~コンテナ_kの児AからDevOpsh廠のBまで~Saki Homma?
PDF
[TL03] あなたはどっち? Visual Studio Code 塗と Visual Studio 塗による Web フロントエンド_k 莿彌B初de:code 2017?
Viewers also liked (20)
PDF
I侫▲廛螢羽`ション_kを屶える.NET室g #ngtnet繍 互勸?
PDF
碧並が辰襭 Office & エディタ`荷恬秘T #nds40繍 互勸?
PDF
O┬Pデザインのをしよう #nds35繍 互勸?
More from Tadahiro Ishisaka (20)
Visual studio 2015 update1 ctpとcsi
- 3. VisualStudio 2015 Update1
CTP
? 10/9(JPT)にリリ`スされました
? バグ俐屎C嬬弖紗
? Windows Store鬚吋灰鵐僖ぅ襯プション(/BigObj)の弖紗
? C# Interactive Window
? C#のREPLh廠
? VSOでのプルリクエストがTeam Explorerで恬撹辛嬬に
? など
3
- 4. C# Interactive Window
? VisualStudio 2015坪のサブウインドウ
? C#のREPL(ReadCevalCprint loop)h廠
? C#のコ`ドをスクリプトとしてg佩できる
? C#のコ`ドを議にg佩できる
? 翌何のアセンブリを歌孚辛嬬
? 翌何のスクリプトをiみzむことも辛嬬
? インテリセンスが聞える
? Windowの嶄でawaitをちゃんと棋つ
? IEnumerableの嶄附は燕幣してくれる
? イミディエイトウインドウのようにすぐにIDEやデバッ
ガの荷恬ができるUではなさそう
? 児云議にコ`ドの_J喘か
4
- 6. h廠のコマンド
? C#のディレクティブを聞ってgFしている
? #help
? ヘルプ
? #r
? アセンブリへのリファレンスの弖紗
? #r "path/MyAssembly.dll^
? #r "System.Collections.Generic^
? #load
? スクリプト(.csx)のiz
? #clear or #cls
? 鮫中肇
? #reset
? h廠のリセット
?#r "path/MyAssembly.dll"
6
- 10. Linq
> using System.Collections.Generic;
> List<int> mylist = new List<int> { 4, 7, 2, 5, 0, 6 };
mylist List<int>(6) { 4, 7, 2, 5, 0, 6 }
> mylist.Where(x => x % 2 == 0)
Enumerable.WhereListIterator<int> { 4, 2, 0, 6 }
> mylist.Average()
4
>
10
- 11. async/await
> using System.Threading.Tasks;
> async Task<DateTime> CountToAsync(int num = 10)
. {
. for (int i = 0; i < num; i++)
. {
. await Task.Delay(TimeSpan.FromSeconds(1));
. }
.
. return DateTime.Now;
. }
> await CountToAsync()
[10/7/2015 2:38:24 PM]
>
11