How LINQ Works

4.6K Views

May 05, 23

スライド概要

C#のLINQの仕組みについて

profile-image

Unityでゲーム作る学生です。

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

関連スライド

各ページのテキスト
1.

How LINQ works foreach LINQ Annulus Games 1

2.

LINQ Annulus Games 2

3.

3 2 1 . Enumerable.Range . LINQ 3 . foreach Annulus Games 1 40 5 Console 3

4.

LINQ IEnumerator Annulus Games IEnumerable 4

5.

LINQ Rx 4 Annulus Games 5

6.

Lv . foreach IEnumerable 1 Annulus Games 6

7.

foreach foreach Annulus Games 7

8.

3 2 1 foreach . IEnumerable GetEnumerator . . MoveNext true MoveNext Current Dispose Annulus Games 8

9.

IEnumerator MoveNext Current ( Reset ) MoveNext false Annulus Games 9

10.

IEnumerable ( IEnumerator) foreach Annulus Games 10

11.

IEnumerator IEnumerable IEnumerator IEnumerable (foreach) Annulus Games 11

12.

[ ] foreach IDisposable foreach ⾒ Dispose foreach IEnumerator<T> ⾒ using Annulus Games 12

13.

Lv foreach while(enumerator.MoveNext()) IEnumerator IEnumerable IEnumerable 1 Annulus Games 13

14.

Lv . 2 Annulus Games 14

15.

IEnumerable Annulus Games 15

16.

IEnumerable yield return ( ) IEnumerable yield break Annulus Games 16

17.

from to IEnumerable foreach 1 10 Annulus Games 17

18.

IEnumerable or IEnumerator ? IEnumerable IEnumerator Lv foreach LINQ ⾒ IEnumerable 18 1 Annulus Games

19.

[ 1] MoveNext Annulus Games yield return 19

20.

[ 2] Unity yield return Unity Annulus Games Update MoveNext async/await 20

21.

Lv IEnumerable yield return 2 Annulus Games yield break 21

22.

Lv . LINQ 3 Annulus Games 22

23.

IEnumerator Lv MoveNext MoveNext 1 Annulus Games Current Current 23

24.

Where MoveNext LINQ Annulus Games Where 24

25.

Where Where ⾒ yield return MoveNext ⾒ (⾒ Annulus Games ) 25

26.

Select Current LINQ Annulus Games Select 26

27.

Select Select selector yield return Current Annulus Games selector 27

28.

IEnumerable<T> Where Select IEnumerable<T> Annulus Games IEnumerable<T> IEnumerable<T> ⾒ 28

29.

Lv MoveNext Current LINQ LINQ LINQ IEnumerable<T> 3 Annulus Games 29

30.

Lv . 4 Annulus Games 30

31.

LINQ Where Select IEnumerable<T> MoveNext LINQ Annulus Games 31

32.

MoveNext foreach ( Annulus Games ) 32

33.

foreach 2 foreach 2 IEnumerable<T> ⾒ Annulus Games 33

34.

ToArray Annulus Games ToList ( ) 34

35.

LINQ / Where, Select, Take, OrderBy IEnumerable<T> ToArray, ToList, Sum, First 35 … … Annulus Games

36.

Lv LINQ IEnumerable<T> ⾒ 4 Annulus Games 36

37.

Annulus Games 37

38.

LINQ Annulus Games 38

39.

Thank you for listening! Annulus Games 39