Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な答え:.ToList()最初のクエリ宣言 ( q1) の末尾から呼び出しを削除します。
.ToList()
q1
呼び出すToList()と、そのクエリの結果が具体化されます。というか、それらを列挙しています。ToList呼び出しを削除するとq1、Listof データではなくIEnumerableof データになり、別のクエリに結合された場合に LINQ がさらに最適化できます。
ToList()
ToList
List
IEnumerable