Collection<T>的IEnumerable的实现在哪里

Where is the implementation of IEnumerable of Collection<T>

假设我有一个 Collection<string> 并且我正在使用 GetEnumerator() 和 returns IEnumerator<string>,我在哪里可以找到 IEnumerator 的实现collection?

在 MS site 上,他们只是说:

Returns an enumerator that iterates through the Collection.

但是实现IEnumerator的class在哪里呢?

查看 source 我们可以看到 GetEnumerator returns 它的 items 字段的 GetEnumerator 具体类型是 List<T> (在构造函数)

那个 GetEnumerator returns List<T>.Enumerator 一个内部嵌套 class 的实例,其来源可用 here