Now, in checking for the IDisposable interface, regardless of whether or not the iterator type implements the IEnumerator, the compiler calls the Dispose method, if it is implemented.
英
美
- 现在,编译器在检测是否存在IDisposable接口时,无论迭代程序类型是否实现IEnumerator,都将调用Dispose方法(如果已实现)。
