5.5K Views
May 05, 23
スライド概要
C#のLINQの仕組みについて
Unityでゲーム作る学生です。
How LINQ works foreach LINQ Annulus Games 1
LINQ Annulus Games 2
3 2 1 . Enumerable.Range . LINQ 3 . foreach Annulus Games 1 40 5 Console 3
LINQ IEnumerator Annulus Games IEnumerable 4
LINQ Rx 4 Annulus Games 5
Lv . foreach IEnumerable 1 Annulus Games 6
foreach foreach Annulus Games 7
3 2 1 foreach . IEnumerable GetEnumerator . . MoveNext true MoveNext Current Dispose Annulus Games 8
IEnumerator MoveNext Current ( Reset ) MoveNext false Annulus Games 9
IEnumerable ( IEnumerator) foreach Annulus Games 10
IEnumerator IEnumerable IEnumerator IEnumerable (foreach) Annulus Games 11
[ ] foreach IDisposable foreach ⾒ Dispose foreach IEnumerator<T> ⾒ using Annulus Games 12
Lv foreach while(enumerator.MoveNext()) IEnumerator IEnumerable IEnumerable 1 Annulus Games 13
Lv . 2 Annulus Games 14
IEnumerable Annulus Games 15
IEnumerable yield return ( ) IEnumerable yield break Annulus Games 16
from to IEnumerable foreach 1 10 Annulus Games 17
IEnumerable or IEnumerator ? IEnumerable IEnumerator Lv foreach LINQ ⾒ IEnumerable 18 1 Annulus Games
[ 1] MoveNext Annulus Games yield return 19
[ 2] Unity yield return Unity Annulus Games Update MoveNext async/await 20
Lv IEnumerable yield return 2 Annulus Games yield break 21
Lv . LINQ 3 Annulus Games 22
IEnumerator Lv MoveNext MoveNext 1 Annulus Games Current Current 23
Where MoveNext LINQ Annulus Games Where 24
Where Where ⾒ yield return MoveNext ⾒ (⾒ Annulus Games ) 25
Select Current LINQ Annulus Games Select 26
Select Select selector yield return Current Annulus Games selector 27
IEnumerable<T> Where Select IEnumerable<T> Annulus Games IEnumerable<T> IEnumerable<T> ⾒ 28
Lv MoveNext Current LINQ LINQ LINQ IEnumerable<T> 3 Annulus Games 29
Lv . 4 Annulus Games 30
LINQ Where Select IEnumerable<T> MoveNext LINQ Annulus Games 31
MoveNext foreach ( Annulus Games ) 32
foreach 2 foreach 2 IEnumerable<T> ⾒ Annulus Games 33
ToArray Annulus Games ToList ( ) 34
LINQ / Where, Select, Take, OrderBy IEnumerable<T> ToArray, ToList, Sum, First 35 … … Annulus Games
Lv LINQ IEnumerable<T> ⾒ 4 Annulus Games 36
Annulus Games 37
LINQ Annulus Games 38
Thank you for listening! Annulus Games 39