Iteratorclass在哪个名字space?

Which name space is the Iterator class in?

source code for System.Linq.Enumerable.Where 方法中,第 25 行有以下内容:

if (source is Iterator<TSource> iterator)

我找不到 class Iterator 是什么。 space 是哪个名字?

使用 https://source.dot.net to browse the .NET Core source (and https://referencesource.microsoft.com 浏览 .NET Framework 源代码)。

您的方法 is here. You can click on Iterator<T> and it takes you here,在 System/Linq/Iterator.cs,在 System.Linq 命名空间中。它是 Enumerable.

使用的内部类型